public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-261] Fix up 'libgomp.fortran/use_device_addr-5.f90' multi-device testing
@ 2022-05-10 12:51 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-05-10 12:51 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:798152475559a6be8049692932cc747c6499e7f5
commit r13-261-g798152475559a6be8049692932cc747c6499e7f5
Author: Thomas Schwinge <thomas@codesourcery.com>
Date: Tue May 10 14:43:56 2022 +0200
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.
Diff:
---
libgomp/testsuite/libgomp.fortran/use_device_addr-5.f90 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libgomp/testsuite/libgomp.fortran/use_device_addr-5.f90 b/libgomp/testsuite/libgomp.fortran/use_device_addr-5.f90
index 1def70a1bc0..3124d60fe9b 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-05-10 12:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-10 12:51 [gcc r13-261] Fix up 'libgomp.fortran/use_device_addr-5.f90' multi-device testing Thomas Schwinge
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).