diff options
Diffstat (limited to 'libgomp/oacc-mem.c')
-rw-r--r-- | libgomp/oacc-mem.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libgomp/oacc-mem.c b/libgomp/oacc-mem.c index af067d6..5410906 100644 --- a/libgomp/oacc-mem.c +++ b/libgomp/oacc-mem.c @@ -547,6 +547,9 @@ update_dev_host (int is_dev, void *h, size_t s) { splay_tree_key n; void *d; + + goacc_lazy_initialize (); + struct goacc_thread *thr = goacc_thread (); struct gomp_device_descr *acc_dev = thr->dev; @@ -554,9 +557,6 @@ update_dev_host (int is_dev, void *h, size_t s) n = lookup_host (acc_dev, h, s); - /* No need to call lazy open, as the data must already have been - mapped. */ - if (!n) { gomp_mutex_unlock (&acc_dev->lock); |