Commit 18d2ada8 by Martin Jambor Committed by Alexander Monakov

libgomp testsuite: add missing map clauses

	* testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
	mapping clauses to target constructs.
	* testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.


Co-Authored-By: Alexander Monakov <amonakov@ispras.ru>

From-SVN: r242436
parent 5a65a911
2016-11-15 Martin Jambor <mjambor@suse.cz>
Alexander Monakov <amonakov@ispras.ru>
* testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
mapping clauses to target constructs.
* testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
2016-11-15 Matthias Klose <doko@ubuntu.com> 2016-11-15 Matthias Klose <doko@ubuntu.com>
* configure: Regenerate. * configure: Regenerate.
......
...@@ -9,12 +9,12 @@ program e_57_1 ...@@ -9,12 +9,12 @@ program e_57_1
a = 100 a = 100
b = 0 b = 0
!$omp target if(a > 200 .and. a < 400) !$omp target map(from: c) if(a > 200 .and. a < 400)
c = omp_is_initial_device () c = omp_is_initial_device ()
!$omp end target !$omp end target
!$omp target data map(to: b) if(a > 200 .and. a < 400) !$omp target data map(to: b) if(a > 200 .and. a < 400)
!$omp target !$omp target map(from: b, d)
b = 100 b = 100
d = omp_is_initial_device () d = omp_is_initial_device ()
!$omp end target !$omp end target
...@@ -25,12 +25,12 @@ program e_57_1 ...@@ -25,12 +25,12 @@ program e_57_1
a = a + 200 a = a + 200
b = 0 b = 0
!$omp target if(a > 200 .and. a < 400) !$omp target map(from: c) if(a > 200 .and. a < 400)
c = omp_is_initial_device () c = omp_is_initial_device ()
!$omp end target !$omp end target
!$omp target data map(to: b) if(a > 200 .and. a < 400) !$omp target data map(to: b) if(a > 200 .and. a < 400)
!$omp target !$omp target map(from: b, d)
b = 100 b = 100
d = omp_is_initial_device () d = omp_is_initial_device ()
!$omp end target !$omp end target
...@@ -41,12 +41,12 @@ program e_57_1 ...@@ -41,12 +41,12 @@ program e_57_1
a = a + 200 a = a + 200
b = 0 b = 0
!$omp target if(a > 200 .and. a < 400) !$omp target map(from: c) if(a > 200 .and. a < 400)
c = omp_is_initial_device () c = omp_is_initial_device ()
!$omp end target !$omp end target
!$omp target data map(to: b) if(a > 200 .and. a < 400) !$omp target data map(to: b) if(a > 200 .and. a < 400)
!$omp target !$omp target map(from: b, d)
b = 100 b = 100
d = omp_is_initial_device () d = omp_is_initial_device ()
!$omp end target !$omp end target
......
...@@ -8,13 +8,13 @@ program e_57_3 ...@@ -8,13 +8,13 @@ program e_57_3
integer :: default_device integer :: default_device
default_device = omp_get_default_device () default_device = omp_get_default_device ()
!$omp target !$omp target map(from: res)
res = omp_is_initial_device () res = omp_is_initial_device ()
!$omp end target !$omp end target
if (res) call abort if (res) call abort
call omp_set_default_device (omp_get_num_devices ()) call omp_set_default_device (omp_get_num_devices ())
!$omp target !$omp target map(from: res)
res = omp_is_initial_device () res = omp_is_initial_device ()
!$omp end target !$omp end target
if (.not. res) call abort if (.not. res) call abort
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment