[Openmp-commits] [openmp] [OpenMP][Flang] Fix some of the Fortan OpenMP Offloading tests (PR #71070)
Akash Banerjee via Openmp-commits
openmp-commits at lists.llvm.org
Thu Nov 2 08:51:28 PDT 2023
https://github.com/TIFitis created https://github.com/llvm/llvm-project/pull/71070
target_map_common_block2.f90
- Fix the extra space in the print message.
- #67164 fixes this. So moving it outside of failing and also removing XFAIL marker.
basic-target-region-3D-array.f90
- Corrected the check to account for the new lines printed.
Depends on #67319
>From feb003cff05ce24a1e5681804f60af113aee5e94 Mon Sep 17 00:00:00 2001
From: Akash Banerjee <Akash.Banerjee at amd.com>
Date: Thu, 2 Nov 2023 15:45:50 +0000
Subject: [PATCH] [OpenMP][Flang]Fix some of the Fortan OpenMP Offloading tests
target_map_common_block2.f90
- Fix the extra space in the print message.
- #67164 fixes this. So moving it outside of failing and also removing XFAIL marker.
basic-target-region-3D-array.f90
- Corrected the check to account for the new lines printed.
Depends on #67319
---
.../fortran/basic-target-region-3D-array.f90 | 13 ++++++++++---
.../{failing => }/target_map_common_block2.f90 | 5 ++---
2 files changed, 12 insertions(+), 6 deletions(-)
rename openmp/libomptarget/test/offloading/fortran/{failing => }/target_map_common_block2.f90 (85%)
diff --git a/openmp/libomptarget/test/offloading/fortran/basic-target-region-3D-array.f90 b/openmp/libomptarget/test/offloading/fortran/basic-target-region-3D-array.f90
index 44ff394dcda16be..abc2763d4a30cca 100644
--- a/openmp/libomptarget/test/offloading/fortran/basic-target-region-3D-array.f90
+++ b/openmp/libomptarget/test/offloading/fortran/basic-target-region-3D-array.f90
@@ -23,7 +23,7 @@ program main
end do
i = 1
-j = 1
+j = 1
k = 1
!$omp target map(tofrom:x, counter) map(to: i, j, k, i2, j2, k2)
@@ -50,5 +50,12 @@ program main
end do
end do
end program main
-
-! CHECK: 1 2 3 4 5 6 7 8
+
+! CHECK: 1
+! CHECK: 2
+! CHECK: 3
+! CHECK: 4
+! CHECK: 5
+! CHECK: 6
+! CHECK: 7
+! CHECK: 8
diff --git a/openmp/libomptarget/test/offloading/fortran/failing/target_map_common_block2.f90 b/openmp/libomptarget/test/offloading/fortran/target_map_common_block2.f90
similarity index 85%
rename from openmp/libomptarget/test/offloading/fortran/failing/target_map_common_block2.f90
rename to openmp/libomptarget/test/offloading/fortran/target_map_common_block2.f90
index 1f95ef7c460757d..8a9c47545fbd789 100644
--- a/openmp/libomptarget/test/offloading/fortran/failing/target_map_common_block2.f90
+++ b/openmp/libomptarget/test/offloading/fortran/target_map_common_block2.f90
@@ -7,7 +7,6 @@
! UNSUPPORTED: x86_64-pc-linux-gnu-LTO
! RUN: %libomptarget-compile-fortran-run-and-check-generic
-! XFAIL: *
program main
use omp_lib
@@ -15,11 +14,11 @@ program main
common var4
var4 = 24
tmp = 12
- print *, "var4 before target = ", var4
+ print *, "var4 before target =", var4
!$omp target map(tofrom:var4)
var4 = tmp
!$omp end target
- print *, "var4 after target = ", var4
+ print *, "var4 after target =", var4
end program
! CHECK: var4 before target = 24
More information about the Openmp-commits
mailing list