@@ -10,23 +10,23 @@ report_oom(sz) = return
10
10
import SPIRVIntrinsics: get_global_id
11
11
12
12
function report_exception (ex)
13
- # SPIRVIntrinsics.@printf(
14
- # "ERROR: a %s was thrown during kernel execution on thread (%d, %d, %d).\n",
15
- # ex, get_global_id(UInt32(0)), get_global_id(UInt32(1)), get_global_id(UInt32(2))
16
- # )
13
+ SPIRVIntrinsics. @printf (
14
+ " ERROR: a %s was thrown during kernel execution on thread (%d, %d, %d).\n " ,
15
+ ex, get_global_id (UInt32 (0 )), get_global_id (UInt32 (1 )), get_global_id (UInt32 (2 ))
16
+ )
17
17
return
18
18
end
19
19
20
20
function report_exception_name (ex)
21
- # SPIRVIntrinsics.@printf(
22
- # "ERROR: a %s was thrown during kernel execution on thread (%d, %d, %d).\n",
23
- # ex, get_global_id(UInt32(0)), get_global_id(UInt32(1)), get_global_id(UInt32(2))
24
- # )
25
- # SPIRVIntrinsics.@printf("Stacktrace:\n")
21
+ SPIRVIntrinsics. @printf (
22
+ " ERROR: a %s was thrown during kernel execution on thread (%d, %d, %d).\n " ,
23
+ ex, get_global_id (UInt32 (0 )), get_global_id (UInt32 (1 )), get_global_id (UInt32 (2 ))
24
+ )
25
+ SPIRVIntrinsics. @printf (" Stacktrace:\n " )
26
26
return
27
27
end
28
28
29
29
function report_exception_frame (idx, func, file, line)
30
- # SPIRVIntrinsics.@printf(" [%d] %s at %s:%d\n", idx, func, file, line)
30
+ SPIRVIntrinsics. @printf (" [%d] %s at %s:%d\n " , idx, func, file, line)
31
31
return
32
32
end
0 commit comments