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] diff --git a/src/pocl/device/runtime.jl b/src/pocl/device/runtime.jl index f980f683b..0c862eaa0 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) - 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