[clang] [OpenACC][CIR] Implement 'device_type' clause lowering for 'init'/'sh… (PR #135102)
Valentin Clement バレンタイン クレメン via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 9 17:39:11 PDT 2025
================
@@ -4,4 +4,17 @@ void acc_init(void) {
// CHECK: cir.func @acc_init() {
#pragma acc init
// CHECK-NEXT: acc.init loc(#{{[a-zA-Z0-9]+}}){{$}}
+
+#pragma acc init device_type(*)
----------------
clementval wrote:
What happens if you have this?
```
#pragma acc init device_type(*) device_type(nvidia)
```
https://github.com/llvm/llvm-project/pull/135102
More information about the cfe-commits
mailing list