[Openmp-commits] [openmp] [OpenMP][flang] Adding more tests for commonblock with target map (PR #71146)

Akash Banerjee via Openmp-commits openmp-commits at lists.llvm.org
Thu Nov 30 04:25:43 PST 2023


================
@@ -26,11 +30,14 @@ subroutine check_device
   !$omp target map(tofrom:devices)
     devices(2) = omp_get_device_num()
   !$omp end target
+  print *, omp_get_num_devices()
+  !CHECK: [[ND:[0-9]+]]
+  print *, omp_get_default_device()
+  !CHECK: [[DD:[0-9]+]]
+  !CHECK: devices: [[ND]] [[DD]]
   print *, "devices: ", devices
 end subroutine check_device
 
-!CHECK: devices: 1 0
-
 !-----
 
 subroutine commonblock_simple_with_implicit_type
----------------
TIFitis wrote:

Can you remove the explicit mapping from this test? I guess we want to check implicit mapping here.

https://github.com/llvm/llvm-project/pull/71146


More information about the Openmp-commits mailing list