]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix up 'libgomp.fortran/use_device_addr-5.f90' multi-device testing
authorThomas Schwinge <thomas@codesourcery.com>
Tue, 10 May 2022 12:43:56 +0000 (14:43 +0200)
committerKwok Cheung Yeung <kcy@codesourcery.com>
Tue, 28 Jun 2022 20:55:28 +0000 (13:55 -0700)
Fix-up for recent commit r13-116-g3f8c389fe90bf565a6221a46bb7fb745dd4c1510
"OpenMP: Fix use_device_{addr,ptr} with in-data-sharing arg", where we
currently get:

    libgomp: use_device_ptr pointer wasn't mapped
    FAIL: libgomp.fortran/use_device_addr-5.f90   -O  execution test

libgomp/
* testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
multi-device testing.

(cherry picked from commit 798152475559a6be8049692932cc747c6499e7f5)

libgomp/ChangeLog.omp
libgomp/testsuite/libgomp.fortran/use_device_addr-5.f90

index d8a7ac2c8ef846f91022a1aeddaae9e21b16b6c4..b5557c5e95191250bc837b1d5f32b594f8bc369a 100644 (file)
@@ -1,3 +1,11 @@
+2022-05-10  Thomas Schwinge  <thomas@codesourcery.com>
+
+       Backport from mainline:
+       2022-05-10  Thomas Schwinge  <thomas@codesourcery.com>
+
+       * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
+       multi-device testing.
+
 2022-05-06  Marcel Vollweiler  <marcel@codesourcery.com>
 
        Backport from mainline:
index 1def70a1bc0683c98725433c3df58475a983f902..3124d60fe9beb6fa961acaaf8536d216c4454d36 100644 (file)
@@ -8,7 +8,7 @@ program main
   aaa(:,:,:) = reshape ([(i, i = 1, size(aaa))], shape(aaa))
 
   do i = 0, omp_get_num_devices()
-    !$omp target data map(to: aaa)
+    !$omp target data map(to: aaa) device(i)
       call test_addr (aaa, i)
       call test_ptr (aaa, i)
     !$omp end target data