mirror of git://gcc.gnu.org/git/gcc.git
target.c (gomp_get_target_fn_addr): Allow host fallback if target function wasn't mapped to the device with...
libgomp/ * target.c (gomp_get_target_fn_addr): Allow host fallback if target function wasn't mapped to the device with non-shared memory. From-SVN: r232729
This commit is contained in:
parent
7c816d0f46
commit
eb4048f247
|
|
@ -1,3 +1,8 @@
|
||||||
|
2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
|
||||||
|
|
||||||
|
* target.c (gomp_get_target_fn_addr): Allow host fallback if target
|
||||||
|
function wasn't mapped to the device with non-shared memory.
|
||||||
|
|
||||||
2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
|
2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
|
||||||
|
|
||||||
* task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
|
* task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
|
||||||
|
|
|
||||||
|
|
@ -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);
|
splay_tree_key tgt_fn = splay_tree_lookup (&devicep->mem_map, &k);
|
||||||
gomp_mutex_unlock (&devicep->lock);
|
gomp_mutex_unlock (&devicep->lock);
|
||||||
if (tgt_fn == NULL)
|
if (tgt_fn == NULL)
|
||||||
{
|
return NULL;
|
||||||
if (devicep->capabilities & GOMP_OFFLOAD_CAP_SHARED_MEM)
|
|
||||||
return NULL;
|
|
||||||
else
|
|
||||||
gomp_fatal ("Target function wasn't mapped");
|
|
||||||
}
|
|
||||||
|
|
||||||
return (void *) tgt_fn->tgt_offset;
|
return (void *) tgt_fn->tgt_offset;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue