[Openmp-commits] [PATCH] D65340: [OpenMP][libomptarget] Add support for close map modifier
Gheorghe-Teodor Bercea via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Fri Aug 9 07:39:56 PDT 2019
gtbercea marked 2 inline comments as done.
gtbercea added inline comments.
================
Comment at: libomptarget/test/unified_shared_memory/close_manual.c:46-52
+// For the initalization of the device.
+#pragma omp target map(tofrom : device_alloc)
+ { device_alloc = 10; }
+
+ // CHECK: device_alloc updated on the device
+ if (device_alloc == 10)
+ printf("device_alloc updated on the device\n");
----------------
Hahnfeld wrote:
> Why do we need this?
To initialize the device.
Repository:
rOMP OpenMP
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D65340/new/
https://reviews.llvm.org/D65340
More information about the Openmp-commits
mailing list