Skip to content

Commit 242adcf

Browse files
authored
Switch to SPIRVIntrinsics 0.3 and the new backend (#614)
1 parent eb17a40 commit 242adcf

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Project.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ OpenCL_jll = "6cb37087-e8b6-5417-8430-1f242f1e46e4"
1414
PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
1515
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
1616
SPIRVIntrinsics = "71d1d633-e7e8-4a92-83a1-de8814b09ba8"
17+
SPIRV_LLVM_Backend_jll = "4376b9bf-cff8-51b6-bb48-39421dff0d0c"
18+
SPIRV_Tools_jll = "6ac6d60f-d740-5983-97d7-a4482c0689f4"
1719
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
1820
UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
1921
pocl_jll = "627d6b7a-bbe6-5189-83e7-98cc0a5aeadd"
@@ -32,13 +34,15 @@ SparseArraysExt = "SparseArrays"
3234
Adapt = "0.4, 1.0, 2.0, 3.0, 4"
3335
Atomix = "0.1, 1"
3436
EnzymeCore = "0.7, 0.8.1"
35-
GPUCompiler = "1"
37+
GPUCompiler = "1.2"
3638
InteractiveUtils = "1.6"
3739
LLVM = "9"
3840
LinearAlgebra = "1.6"
3941
MacroTools = "0.5"
4042
PrecompileTools = "1"
41-
SPIRVIntrinsics = "0.2"
43+
SPIRVIntrinsics = "0.3"
44+
SPIRV_LLVM_Backend_jll = "20"
45+
SPIRV_Tools_jll = "2024.4, 2025.1"
4246
SparseArrays = "<0.0.1, 1.6"
4347
StaticArrays = "0.12, 1.0"
4448
UUIDs = "<0.0.1, 1.6"

src/pocl/pocl.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ include("device/quirks.jl")
5959
include("device/runtime.jl")
6060

6161
function Adapt.adapt_storage(to::KernelAdaptor, xs::Array{T, N}) where {T, N}
62-
return CLDeviceArray{T, N, AS.Global}(size(xs), reinterpret(LLVMPtr{T, AS.Global}, pointer(xs)))
62+
return CLDeviceArray{T, N, AS.CrossWorkgroup}(size(xs), reinterpret(LLVMPtr{T, AS.CrossWorkgroup}, pointer(xs)))
6363
end
6464

6565
include("backend.jl")

0 commit comments

Comments
 (0)