Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
strategy:
fail-fast: false
matrix:
version: ['1.10', '1.11']
version: ['1.10', '1.11', '1.12']
os: [ubuntu-24.04, ubuntu-24.04-arm, macOS-15, macOS-15-intel, windows-2022]
arch: [x64, arm64]
pocl: [jll, local]
Expand Down
26 changes: 16 additions & 10 deletions src/pocl/device/runtime.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,29 @@ report_oom(sz) = return
import SPIRVIntrinsics: get_global_id

function report_exception(ex)
SPIRVIntrinsics.@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))
)
@static if VERSION < v"1.12"
SPIRVIntrinsics.@printf(
"ERROR: a %s was thrown during kernel execution on thread (%d, %d, %d).\n",
ex, get_global_id(UInt32(1)), get_global_id(UInt32(2)), get_global_id(UInt32(3))
)
end
return
end

function report_exception_name(ex)
SPIRVIntrinsics.@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))
)
SPIRVIntrinsics.@printf("Stacktrace:\n")
@static if VERSION < v"1.12"
SPIRVIntrinsics.@printf(
"ERROR: a %s was thrown during kernel execution on thread (%d, %d, %d).\n",
ex, get_global_id(UInt32(1)), get_global_id(UInt32(2)), get_global_id(UInt32(3))
)
SPIRVIntrinsics.@printf("Stacktrace:\n")
end
return
end

function report_exception_frame(idx, func, file, line)
SPIRVIntrinsics.@printf(" [%d] %s at %s:%d\n", idx, func, file, line)
@static if VERSION < v"1.12"
SPIRVIntrinsics.@printf(" [%d] %s at %s:%d\n", idx, func, file, line)
end
return
end
Loading