Skip to content

Commit 996a732

Browse files
authored
[SYCLomatic] Update warning message DPCT1137 (#2859)
Signed-off-by: Jiang, Zhiwei <zhiwei.jiang@intel.com>
1 parent 7fc89af commit 996a732

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

clang/lib/DPCT/Diagnostics/Diagnostics.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,8 @@ DEF_WARNING(JOINT_MATRIX_SHAPE, 1135, HIGH_LEVEL, "Please check if joint_matrix
298298
DEF_COMMENT(JOINT_MATRIX_SHAPE, 1135, HIGH_LEVEL, "Please check if joint_matrix implementations support the combination of data type and matrix shape type in the target hardware.")
299299
DEF_WARNING(UNSUPPORTED_EXTMEM_WIN_HANDLE, 1136, HIGH_LEVEL, "SYCL Bindless Images extension only supports importing external resource using NT handle on Windows. If assert(%0.get_win32_handle()) fails, you may need to adjust the code to use (%0.get_win32_handle()).")
300300
DEF_COMMENT(UNSUPPORTED_EXTMEM_WIN_HANDLE, 1136, HIGH_LEVEL, "SYCL Bindless Images extension only supports importing external resource using NT handle on Windows. If assert({0}.get_win32_handle()) fails, you may need to adjust the code to use ({0}.get_win32_handle()).")
301-
DEF_WARNING(ASYNC_COPY_DEVICE_WARN, 1137, LOW_LEVEL, "ASM instruction \"%0\" is asynchronous copy, current it is migrated to synchronous copy operation. You may need to adjust the code to tune the performance.")
302-
DEF_COMMENT(ASYNC_COPY_DEVICE_WARN, 1137, LOW_LEVEL, "ASM instruction \"{0}\" is asynchronous copy, current it is migrated to synchronous copy operation. You may need to adjust the code to tune the performance.")
301+
DEF_WARNING(ASYNC_COPY_DEVICE_WARN, 1137, LOW_LEVEL, "ASM instruction \"%0\" is asynchronous copy, currently it is migrated to synchronous copy operation. You may need to adjust the code to tune the performance.")
302+
DEF_COMMENT(ASYNC_COPY_DEVICE_WARN, 1137, LOW_LEVEL, "ASM instruction \"{0}\" is asynchronous copy, currently it is migrated to synchronous copy operation. You may need to adjust the code to tune the performance.")
303303

304304
// clang-format on
305305

clang/test/dpct/asm/cp.cu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// CHECK-NEXT: const int BYTES = 16;
1313
// CHECK-NEXT: auto smem = smem_ptr;
1414
// CHECK-NEXT: /*
15-
// CHECK-NEXT: DPCT1137:{{[0-9]+}}: ASM instruction "cp.async" is asynchronous copy, current it is migrated to synchronous copy operation. You may need to adjust the code to tune the performance.
15+
// CHECK-NEXT: DPCT1137:{{[0-9]+}}: ASM instruction "cp.async" is asynchronous copy, currently it is migrated to synchronous copy operation. You may need to adjust the code to tune the performance.
1616
// CHECK-NEXT: */
1717
// CHECK-NEXT: {
1818
// CHECK-NEXT: *(((uint32_t *)(uintptr_t)smem)) = *(((uint32_t *)(uintptr_t)glob_ptr));
@@ -38,7 +38,7 @@ __device__ inline void cp_async4(void *smem_ptr, const void *glob_ptr) {
3838
// CHECK-NEXT: const int BYTES = 16;
3939
// CHECK-NEXT: auto smem = smem_ptr;
4040
// CHECK-NEXT: /*
41-
// CHECK-NEXT: DPCT1137:{{[0-9]+}}: ASM instruction "cp.async" is asynchronous copy, current it is migrated to synchronous copy operation. You may need to adjust the code to tune the performance.
41+
// CHECK-NEXT: DPCT1137:{{[0-9]+}}: ASM instruction "cp.async" is asynchronous copy, currently it is migrated to synchronous copy operation. You may need to adjust the code to tune the performance.
4242
// CHECK-NEXT: */
4343
// CHECK-NEXT: {
4444
// CHECK-NEXT: bool p;

0 commit comments

Comments
 (0)