[clang] [OpenACC] Implement better dupe catching for device_type clauses (PR #138196)
via cfe-commits
cfe-commits at lists.llvm.org
Thu May 1 23:59:45 PDT 2025
================
@@ -539,4 +539,25 @@ void no_dupes_since_last_device_type() {
#pragma acc loop collapse(1) device_type(*) collapse(1) device_type(nvidia) collapse(2)
for(unsigned i = 0; i < 5; ++i)
for(unsigned j = 0; j < 5; ++j);
+
+ // This one is ok, despite * being the 'all' value.
+#pragma acc loop device_type(*) collapse(1) device_type(nvidia) collapse(2)
----------------
cor3ntin wrote:
what about `device_type(*) device_type(*)` ?
https://github.com/llvm/llvm-project/pull/138196
More information about the cfe-commits
mailing list