diff options
author | Thomas Schwinge <tschwinge@baylibre.com> | 2024-10-14 10:26:13 +0200 |
---|---|---|
committer | Thomas Schwinge <tschwinge@baylibre.com> | 2024-10-14 10:26:13 +0200 |
commit | c3774b2e2d7d00ad9f9f6fce10aa6bc872bd951f (patch) | |
tree | 5223dbc229850c2f089ace13e0619dbaa51d7d50 | |
parent | c53bd48c6920bc1f4039b6682aafbf414a600e47 (diff) | |
download | gcc-c3774b2e2d7d00ad9f9f6fce10aa6bc872bd951f.zip gcc-c3774b2e2d7d00ad9f9f6fce10aa6bc872bd951f.tar.gz gcc-c3774b2e2d7d00ad9f9f6fce10aa6bc872bd951f.tar.bz2 |
Fortran: Use OpenACC's acc_on_device builtin, fix OpenMP' __builtin_is_initial_device: Fix effective-target keyword in 'libgomp.oacc-fortran/acc_on_device-2.f90'
The test case 'libgomp.oacc-fortran/acc_on_device-2.f90' added in
commit 3269a722b7a03613e9c4e2862bc5088c4a17cc11
"Fortran: Use OpenACC's acc_on_device builtin, fix OpenMP' __builtin_is_initial_device"
had a mismatch between dump file production and its scanning; the former needs
to use 'offload_target_nvptx' (like 'offload_target_amdgcn'), not
'offload_device_nvptx'.
PR testsuite/82250
libgomp/
* testsuite/libgomp.oacc-fortran/acc_on_device-2.f90: Fix
effective-target keyword.
-rw-r--r-- | libgomp/testsuite/libgomp.oacc-fortran/acc_on_device-2.f90 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgomp/testsuite/libgomp.oacc-fortran/acc_on_device-2.f90 b/libgomp/testsuite/libgomp.oacc-fortran/acc_on_device-2.f90 index 39d4357..306555c 100644 --- a/libgomp/testsuite/libgomp.oacc-fortran/acc_on_device-2.f90 +++ b/libgomp/testsuite/libgomp.oacc-fortran/acc_on_device-2.f90 @@ -3,7 +3,7 @@ ! Check whether 'acc_on_device()' is properly compile-time optimized. */ ! { dg-additional-options "-fdump-tree-gimple -fdump-tree-optimized" } -! { dg-additional-options -foffload-options=-fdump-tree-optimized { target { offload_device_nvptx || offload_target_amdgcn } } } +! { dg-additional-options -foffload-options=-fdump-tree-optimized { target { offload_target_nvptx || offload_target_amdgcn } } } ! { dg-final { scan-tree-dump-times "acc_on_device" 1 "gimple" } } |