diff options
author | Ilya Verbin <ilya.verbin@intel.com> | 2016-01-22 14:27:37 +0000 |
---|---|---|
committer | Ilya Verbin <iverbin@gcc.gnu.org> | 2016-01-22 14:27:37 +0000 |
commit | eb4048f247b029f5cf076b9596c466647d3b199f (patch) | |
tree | 121a458a0dbbd037ed92f8d5fc34e398e2d23622 /libgomp/target.c | |
parent | 7c816d0f462a6ef8b1613928bd68928d232620cb (diff) | |
download | gcc-eb4048f247b029f5cf076b9596c466647d3b199f.tar.gz |
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
Diffstat (limited to 'libgomp/target.c')
-rw-r--r-- | libgomp/target.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libgomp/target.c b/libgomp/target.c index f1f58492ee5..96fe3d5eb0d 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; } |