From ba6c14f4b3a7f3fe35580241f8c5ceadecd7f2da Mon Sep 17 00:00:00 2001 From: Valentin Churavy Date: Mon, 16 Jun 2025 14:25:03 +0200 Subject: [PATCH] Switch to SPIRVIntrinsics 0.3 and the new backend --- Project.toml | 8 ++++++-- src/pocl/pocl.jl | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Project.toml b/Project.toml index acd4e89de..51859d2ee 100644 --- a/Project.toml +++ b/Project.toml @@ -14,6 +14,8 @@ OpenCL_jll = "6cb37087-e8b6-5417-8430-1f242f1e46e4" PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a" Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7" SPIRVIntrinsics = "71d1d633-e7e8-4a92-83a1-de8814b09ba8" +SPIRV_LLVM_Backend_jll = "4376b9bf-cff8-51b6-bb48-39421dff0d0c" +SPIRV_Tools_jll = "6ac6d60f-d740-5983-97d7-a4482c0689f4" StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4" pocl_jll = "627d6b7a-bbe6-5189-83e7-98cc0a5aeadd" @@ -32,13 +34,15 @@ SparseArraysExt = "SparseArrays" Adapt = "0.4, 1.0, 2.0, 3.0, 4" Atomix = "0.1, 1" EnzymeCore = "0.7, 0.8.1" -GPUCompiler = "1" +GPUCompiler = "1.2" InteractiveUtils = "1.6" LLVM = "9" LinearAlgebra = "1.6" MacroTools = "0.5" PrecompileTools = "1" -SPIRVIntrinsics = "0.2" +SPIRVIntrinsics = "0.3" +SPIRV_LLVM_Backend_jll = "20" +SPIRV_Tools_jll = "2024.4, 2025.1" SparseArrays = "<0.0.1, 1.6" StaticArrays = "0.12, 1.0" UUIDs = "<0.0.1, 1.6" diff --git a/src/pocl/pocl.jl b/src/pocl/pocl.jl index 9c995daff..b16114d54 100644 --- a/src/pocl/pocl.jl +++ b/src/pocl/pocl.jl @@ -59,7 +59,7 @@ include("device/quirks.jl") include("device/runtime.jl") function Adapt.adapt_storage(to::KernelAdaptor, xs::Array{T, N}) where {T, N} - return CLDeviceArray{T, N, AS.Global}(size(xs), reinterpret(LLVMPtr{T, AS.Global}, pointer(xs))) + return CLDeviceArray{T, N, AS.CrossWorkgroup}(size(xs), reinterpret(LLVMPtr{T, AS.CrossWorkgroup}, pointer(xs))) end include("backend.jl")