From d74ff829c9cffa0eabd6c3c0703dd92a917991db Mon Sep 17 00:00:00 2001 From: Christian Guinard <28689358+christiangnrd@users.noreply.github.com> Date: Fri, 16 Jan 2026 14:13:52 -0400 Subject: [PATCH 1/4] Fix typo in exception reporting --- src/pocl/device/runtime.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pocl/device/runtime.jl b/src/pocl/device/runtime.jl index f980f683b..b95ef53d0 100644 --- a/src/pocl/device/runtime.jl +++ b/src/pocl/device/runtime.jl @@ -12,7 +12,7 @@ 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)) + ex, get_global_id(UInt32(1)), get_global_id(UInt32(2)), get_global_id(UInt32(3)) ) return end @@ -20,7 +20,7 @@ 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)) + ex, get_global_id(UInt32(1)), get_global_id(UInt32(2)), get_global_id(UInt32(3)) ) SPIRVIntrinsics.@printf("Stacktrace:\n") return From 8728bf6d5fad960f849cd139e90fa88061e2d529 Mon Sep 17 00:00:00 2001 From: Christian Guinard <28689358+christiangnrd@users.noreply.github.com> Date: Fri, 16 Jan 2026 14:14:46 -0400 Subject: [PATCH 2/4] Disable error reporting for 1.12 --- src/pocl/device/runtime.jl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/pocl/device/runtime.jl b/src/pocl/device/runtime.jl index b95ef53d0..8d4ae3857 100644 --- a/src/pocl/device/runtime.jl +++ b/src/pocl/device/runtime.jl @@ -10,23 +10,29 @@ report_oom(sz) = return import SPIRVIntrinsics: get_global_id function report_exception(ex) + @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) + @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) + @static if VERSION < v"1.12" SPIRVIntrinsics.@printf(" [%d] %s at %s:%d\n", idx, func, file, line) + end return end From 7fbfe83f7c6b18974b4dd8bcfec7d80805e8070e Mon Sep 17 00:00:00 2001 From: Christian Guinard <28689358+christiangnrd@users.noreply.github.com> Date: Fri, 16 Jan 2026 14:21:53 -0400 Subject: [PATCH 3/4] Test 1.12 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c98ffeb2d..8de2ba4f5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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] From 22e50ac7f2f29f1957a42aec27f2d191c14f2350 Mon Sep 17 00:00:00 2001 From: Christian Guinard <28689358+christiangnrd@users.noreply.github.com> Date: Tue, 3 Feb 2026 17:02:39 -0400 Subject: [PATCH 4/4] Format --- src/pocl/device/runtime.jl | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/pocl/device/runtime.jl b/src/pocl/device/runtime.jl index 8d4ae3857..0c862eaa0 100644 --- a/src/pocl/device/runtime.jl +++ b/src/pocl/device/runtime.jl @@ -11,28 +11,28 @@ import SPIRVIntrinsics: get_global_id function report_exception(ex) @static if VERSION < v"1.12" - SPIRVIntrinsics.@printf( - "ERROR: a %s was thrown during kernel execution on thread (%d, %d, %d).\n", + 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) @static if VERSION < v"1.12" - SPIRVIntrinsics.@printf( - "ERROR: a %s was thrown during kernel execution on thread (%d, %d, %d).\n", + 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") + ) + SPIRVIntrinsics.@printf("Stacktrace:\n") end return end function report_exception_frame(idx, func, file, line) @static if VERSION < v"1.12" - SPIRVIntrinsics.@printf(" [%d] %s at %s:%d\n", idx, func, file, line) + SPIRVIntrinsics.@printf(" [%d] %s at %s:%d\n", idx, func, file, line) end return end