[Openmp-commits] [PATCH] D34701: OpenMP 4.5 Target data test cases

Sergio Pino via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Tue Jun 27 11:06:18 PDT 2017


sergiop created this revision.

This patch contains test cases for offloading in openmp 4.5. Specifically, these test cases cover the 'target data' construct.

test_target_data_if.c
test_target_data_map_array_sections.c 
test_target_data_use_device_ptr.c
test_target_data_map.c
test_target_data_map_classes.cpp
test_target_data_map_array.f90        
test_target_data_map_devices.c


https://reviews.llvm.org/D34701

Files:
  libomptarget/test/offloading/offloading_success.c
  libomptarget/test/offloading/offloading_success.cpp


Index: libomptarget/test/offloading/offloading_success.cpp
===================================================================
--- libomptarget/test/offloading/offloading_success.cpp
+++ libomptarget/test/offloading/offloading_success.cpp
@@ -9,7 +9,7 @@
 int main(void) {
   int isHost = 0;
 
-#pragma omp target
+#pragma omp target map(from: isHost)
   { isHost = omp_is_initial_device(); }
 
   if (isHost < 0) {
Index: libomptarget/test/offloading/offloading_success.c
===================================================================
--- libomptarget/test/offloading/offloading_success.c
+++ libomptarget/test/offloading/offloading_success.c
@@ -9,7 +9,7 @@
 int main(void) {
   int isHost = -1;
 
-#pragma omp target
+#pragma omp target map(from:isHost)
   { isHost = omp_is_initial_device(); }
 
   if (isHost < 0) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34701.104216.patch
Type: text/x-patch
Size: 826 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20170627/e24087f2/attachment.bin>


More information about the Openmp-commits mailing list