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
* [SYCLomatic] Migrate device ID and UUID
Signed-off-by: Michael Aziz <[email protected]>
* [SYCLomatic] Disable device info migration with option
Signed-off-by: Michael Aziz <[email protected]>
---------
Signed-off-by: Michael Aziz <[email protected]>
// CHECK-NEXT: DPCT1090:{{[0-9]+}}: SYCL does not support the device property that would be functionally compatible with pciDeviceID. It was not migrated. You need to rewrite the code.
15
+
// CHECK-NEXT: */
16
+
// CHECK-NEXT: const int id = properties.pciDeviceID;
17
+
constint id = properties.pciDeviceID;
18
+
// CHECK: /*
19
+
// CHECK-NEXT: DPCT1090:{{[0-9]+}}: SYCL does not support the device property that would be functionally compatible with uuid. It was not migrated. You need to rewrite the code.
// CHECK-NEXT: DPCT1090:{{[0-9]+}}: SYCL does not support the device property that would be functionally compatible with pciDeviceID. It was not migrated. You need to rewrite the code.
25
+
// CHECK-NEXT: */
26
+
// CHECK-NEXT: properties.pciDeviceID = id;
27
+
properties.pciDeviceID = id;
28
+
// CHECK: /*
29
+
// CHECK-NEXT: DPCT1090:{{[0-9]+}}: SYCL does not support the device property that would be functionally compatible with uuid. It was not migrated. You need to rewrite the code.
Copy file name to clipboardExpand all lines: clang/test/dpct/types001.cu
+1-4Lines changed: 1 addition & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -548,10 +548,7 @@ void fun3() {
548
548
// CHECK-NEXT: /*
549
549
// CHECK-NEXT: DPCT1051:{{[0-9]+}}: SYCL does not support a device property functionally compatible with pciBusID. It was migrated to -1. You may need to adjust the value of -1 for the specific device.
550
550
// CHECK-NEXT: */
551
-
// CHECK-NEXT: /*
552
-
// CHECK-NEXT: DPCT1051:{{[0-9]+}}: SYCL does not support a device property functionally compatible with pciDeviceID. It was migrated to -1. You may need to adjust the value of -1 for the specific device.
// CHECK-NEXT: DPCT1051:{{[0-9]+}}: SYCL does not support a device property functionally compatible with concurrentKernels. It was migrated to true. You may need to adjust the value of true for the specific device.
0 commit comments