1
+ # reset the runtime cache from global scope, so that any change triggers recompilation
2
+ GPUCompiler. reset_runtime ()
3
+
1
4
signal_exception () = return
2
5
3
6
malloc (sz) = C_NULL
@@ -7,23 +10,23 @@ report_oom(sz) = return
7
10
import SPIRVIntrinsics: get_global_id
8
11
9
12
function report_exception (ex)
10
- SPIRVIntrinsics. @printf (
11
- " ERROR: a %s was thrown during kernel execution on thread (%d, %d, %d).\n " ,
12
- ex, get_global_id (0 ) , get_global_id (1 ) , get_global_id (2 )
13
- )
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
+ # )
14
17
return
15
18
end
16
19
17
20
function report_exception_name (ex)
18
- SPIRVIntrinsics. @printf (
19
- " ERROR: a %s was thrown during kernel execution on thread (%d, %d, %d).\n " ,
20
- ex, get_global_id (0 ) , get_global_id (1 ) , get_global_id (2 )
21
- )
22
- 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")
23
26
return
24
27
end
25
28
26
29
function report_exception_frame (idx, func, file, line)
27
- 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)
28
31
return
29
32
end
0 commit comments