public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Add map clauses to libgomp test device-3.f90
@ 2016-11-14 16:34 Martin Jambor
  2016-11-14 17:24 ` Alexander Monakov
  0 siblings, 1 reply; 7+ messages in thread
From: Martin Jambor @ 2016-11-14 16:34 UTC (permalink / raw)
  To: GCC Patches; +Cc: Jakub Jelinek

Hi,

yesterday I forgot to send out the following patch.  The test
libgomp/testsuite/libgomp.fortran/examples-4/device-3.f90 was failing
for me when I was testing the HSA branch merge but I believe the test
itself is wrong and the failure is due to us now adhering to OpenMP
4.5 default mapping of scalars (i.e. firstprivate, as opposed to
tofrom in 4.0) and the test itself needs to be fixed in the following
way.

OK for trunk?  Thanks,

Martin


2016-11-11  Martin Jambor  <mjambor@suse.cz>

	* device-3.f90 (e_57_3): Add a mapping clause to target construct.

diff --git a/libgomp/testsuite/libgomp.fortran/examples-4/device-3.f90 b/libgomp/testsuite/libgomp.fortran/examples-4/device-3.f90
index a29f1b5..95d9f44 100644
--- a/libgomp/testsuite/libgomp.fortran/examples-4/device-3.f90
+++ b/libgomp/testsuite/libgomp.fortran/examples-4/device-3.f90
@@ -8,13 +8,13 @@ program e_57_3
   integer :: default_device
 
   default_device = omp_get_default_device ()
-  !$omp target
+  !$omp target map(from:res)
     res = omp_is_initial_device ()
   !$omp end target
   if (res) call abort
 
   call omp_set_default_device (omp_get_num_devices ())
-  !$omp target
+  !$omp target map(from:res)
     res = omp_is_initial_device ()
   !$omp end target
   if (.not. res) call abort

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-11-23 17:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-14 16:34 [PATCH] Add map clauses to libgomp test device-3.f90 Martin Jambor
2016-11-14 17:24 ` Alexander Monakov
2016-11-15 16:53   ` Alexander Monakov
2016-11-15 16:57     ` Jakub Jelinek
2016-11-15 17:01     ` Alexander Monakov
2016-11-22 17:27       ` Alexander Monakov
2016-11-23 17:23       ` Jakub Jelinek

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).