Skip to content

Commit 423a054

Browse files
author
Andrew Savonichev
committed
Workaround bug in IGC
Signed-off-by: Andrew Savonichev <[email protected]>
1 parent 8b41e4a commit 423a054

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

sycl/source/detail/devicelib/fallback-cassert.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ extern "C" void __devicelib_assert_fail(
2929
__spirv_ocl_printf(
3030
assert_fmt,
3131
file, (int32_t)line,
32-
(func) ? func : "<unknown function>",
32+
// WORKAROUND: IGC does not handle this well
33+
// (func) ? func : "<unknown function>",
34+
func,
3335
gid0, gid1, gid2,
3436
lid0, lid1, lid2,
3537
expr);

sycl/test/devicelib/assert-windows.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
//
1717
// RUN: env SYCL_PI_TRACE=1 SYCL_DEVICELIB_INHIBIT_NATIVE=1 SYCL_DEVICE_TYPE=CPU %t.out >%t.stdout.fallback 2>%t.stderr.fallback
1818
// RUN: FileCheck %s --check-prefix=CHECK-MESSAGE --input-file %t.stdout.fallback
19-
// CHECK-MESSAGE: {{.*}}assert-windows.cpp:{{[0-9]+}}: <unknown function>: local id: [{{[0-3]}},0,0], global id: [{{[0-3]}},0,0] Assertion `accessorC[wiID] == 0 && "Invalid value"` failed.
19+
// CHECK-MESSAGE: {{.*}}assert-windows.cpp:{{[0-9]+}}: (null): local id: [{{[0-3]}},0,0], global id: [{{[0-3]}},0,0] Assertion `accessorC[wiID] == 0 && "Invalid value"` failed.
2020
//
2121
// RUN: FileCheck %s --input-file %t.stdout.fallback --check-prefix=CHECK-FALLBACK
2222
// CHECK-FALLBACK: ---> piProgramLink

0 commit comments

Comments
 (0)