You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[flang][OpenMP] Add semantic check for device clause (llvm#72789)
This patch adds the following semantic check:
```
The ancestor device-modifier must not appear on the device clause on any
directive other than the target construct.
```
!ERROR: The ANCESTOR device-modifier must not appear on the DEVICE clause on any directive other than the TARGET construct. Found on TARGET DATA construct.
15
+
!$omp target data device(ancestor:0) map(tofrom:a)
16
+
!$omp end target data
17
+
!$omp target data device(device_num:0) map(tofrom:a)
18
+
!$omp end target data
19
+
20
+
21
+
!ERROR: The ANCESTOR device-modifier must not appear on the DEVICE clause on any directive other than the TARGET construct. Found on TARGET ENTER DATA construct.
22
+
!$omp target enter data device(ancestor:0) map(to:a)
23
+
!$omp target exit data map(from:a)
24
+
!$omp target enter data device(device_num:0) map(to:a)
25
+
!$omp target exit data map(from:a)
26
+
27
+
!ERROR: The ANCESTOR device-modifier must not appear on the DEVICE clause on any directive other than the TARGET construct. Found on TARGET UPDATE construct.
0 commit comments