1+ # reset the runtime cache from global scope, so that any change triggers recompilation
2+ GPUCompiler. reset_runtime ()
3+
14signal_exception () = return
25
36malloc (sz) = C_NULL
@@ -7,23 +10,23 @@ report_oom(sz) = return
710import SPIRVIntrinsics: get_global_id
811
912function 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+ # )
1417 return
1518end
1619
1720function 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")
2326 return
2427end
2528
2629function 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)
2831 return
2932end
0 commit comments