-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathruntime.jl
More file actions
29 lines (23 loc) · 813 Bytes
/
runtime.jl
File metadata and controls
29 lines (23 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# reset the runtime cache from global scope, so that any change triggers recompilation
GPUCompiler.reset_runtime()
signal_exception() = return
malloc(sz) = C_NULL
report_oom(sz) = return
function report_exception(ex)
@printf(
"ERROR: a %s was thrown during kernel execution on thread (%d, %d, %d).\n",
ex, get_global_id(UInt32(0)), get_global_id(UInt32(1)), get_global_id(UInt32(2))
)
return
end
function report_exception_name(ex)
@printf(
"ERROR: a %s was thrown during kernel execution on thread (%d, %d, %d).\nStacktrace:\n",
ex, get_global_id(UInt32(0)), get_global_id(UInt32(1)), get_global_id(UInt32(2))
)
return
end
function report_exception_frame(idx, func, file, line)
@printf(" [%d] %s at %s:%d\n", idx, func, file, line)
return
end