@@ -9,11 +9,11 @@ program e_57_1
a = 100
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 ()
!$omp end target
- !$omp target data map(to: b) if(a > 200 .and. a < 400)
+ !$omp target data map(to: b) map(from: d) if(a > 200 .and. a < 400)
!$omp target
b = 100
d = omp_is_initial_device ()
@@ -25,11 +25,11 @@ program e_57_1
a = a + 200
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 ()
!$omp end target
- !$omp target data map(to: b) if(a > 200 .and. a < 400)
+ !$omp target data map(to: b) map(from: d) if(a > 200 .and. a < 400)
!$omp target
b = 100
d = omp_is_initial_device ()
@@ -41,11 +41,11 @@ program e_57_1
a = a + 200
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 ()
!$omp end target
- !$omp target data map(to: b) if(a > 200 .and. a < 400)
+ !$omp target data map(to: b) map(from: d) if(a > 200 .and. a < 400)
!$omp target
b = 100
d = omp_is_initial_device ()