diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2021-05-17 08:05:40 +0200 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2021-05-18 12:57:35 +0200 |
commit | abf937ac00e523576ca86957dfa9769281896ca5 (patch) | |
tree | 42f16dfe8f235e23fbaad7061187c52db5129dac | |
parent | 03eb779141a29f96600cd46904b88a33c4b49a66 (diff) | |
download | gcc-abf937ac00e523576ca86957dfa9769281896ca5.zip gcc-abf937ac00e523576ca86957dfa9769281896ca5.tar.gz gcc-abf937ac00e523576ca86957dfa9769281896ca5.tar.bz2 |
'libgomp.c/target-44.c': Restrict '-latomic' to nvptx offloading compilation
Fix-up for recent commit f87990a2a8fc9e20d30462a0a4c9047582af0cd9
"[openmp, simt] Disable SIMT for user-defined reduction"; see commit
d42088e453042f4f8ba9190a7e29efd937ea2181 "Avoid -latomic for amdgcn
offloading".
libgomp/
* testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
offloading compilation.
-rw-r--r-- | libgomp/testsuite/libgomp.c/target-44.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgomp/testsuite/libgomp.c/target-44.c b/libgomp/testsuite/libgomp.c/target-44.c index 13e0c75..b95e807 100644 --- a/libgomp/testsuite/libgomp.c/target-44.c +++ b/libgomp/testsuite/libgomp.c/target-44.c @@ -1,4 +1,4 @@ -/* { dg-additional-options "-foffload=-latomic" { target { offload_target_nvptx } } } */ +/* { dg-additional-options "-foffload=nvptx-none=-latomic" { target { offload_target_nvptx } } } */ #include <stdlib.h> |