On Wed, Jan 20, 2016 at 09:53:30PM +0300, Ilya Verbin wrote:
> If you're OK with this, I'll install this patch:
> 
> 
> libgomp/
>       * target.c (gomp_get_target_fn_addr): Allow host fallback if target
>       function wasn't mapped to the device with non-shared memory.

Ok, thanks.

> diff --git a/libgomp/target.c b/libgomp/target.c
> index f1f5849..96fe3d5 100644
> --- a/libgomp/target.c
> +++ b/libgomp/target.c
> @@ -1436,12 +1436,7 @@ gomp_get_target_fn_addr (struct gomp_device_descr 
> *devicep,
>        splay_tree_key tgt_fn = splay_tree_lookup (&devicep->mem_map, &k);
>        gomp_mutex_unlock (&devicep->lock);
>        if (tgt_fn == NULL)
> -     {
> -       if (devicep->capabilities & GOMP_OFFLOAD_CAP_SHARED_MEM)
> -         return NULL;
> -       else
> -         gomp_fatal ("Target function wasn't mapped");
> -     }
> +     return NULL;
>  
>        return (void *) tgt_fn->tgt_offset;
>      }
> 
>   -- Ilya

        Jakub

Reply via email to