aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2022-05-10 14:43:56 +0200
committerThomas Schwinge <thomas@codesourcery.com>2022-05-10 14:48:11 +0200
commit798152475559a6be8049692932cc747c6499e7f5 (patch)
tree0f7edc68869d8a541080fd068a9d3e12ebf887b3
parentd1e8f221e3fc8d3153b662c2f912bf1a26d645ff (diff)
downloadgcc-798152475559a6be8049692932cc747c6499e7f5.zip
gcc-798152475559a6be8049692932cc747c6499e7f5.tar.gz
gcc-798152475559a6be8049692932cc747c6499e7f5.tar.bz2
Fix up 'libgomp.fortran/use_device_addr-5.f90' multi-device testing
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.
-rw-r--r--libgomp/testsuite/libgomp.fortran/use_device_addr-5.f902
1 files changed, 1 insertions, 1 deletions
diff --git a/libgomp/testsuite/libgomp.fortran/use_device_addr-5.f90 b/libgomp/testsuite/libgomp.fortran/use_device_addr-5.f90
index 1def70a..3124d60 100644
--- a/libgomp/testsuite/libgomp.fortran/use_device_addr-5.f90
+++ b/libgomp/testsuite/libgomp.fortran/use_device_addr-5.f90
@@ -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