From 166d2de19be714b0905181c7cf417dbee1c19deb Mon Sep 17 00:00:00 2001 From: Tim Besard Date: Wed, 30 Oct 2024 14:30:17 +0100 Subject: [PATCH 1/2] Adapt to JuliaGPU/GPUArrays.jl#567. (#265) --- Project.toml | 2 +- src/array.jl | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 04082ba1..f484ee4b 100644 --- a/Project.toml +++ b/Project.toml @@ -19,7 +19,7 @@ StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" [compat] Adapt = "4" -GPUArrays = "11" +GPUArrays = "11.1" GPUCompiler = "0.27, 1" KernelAbstractions = "0.9.1" LLVM = "9.1" diff --git a/src/array.jl b/src/array.jl index fc5cb160..7968d4d1 100644 --- a/src/array.jl +++ b/src/array.jl @@ -24,6 +24,8 @@ mutable struct CLArray{T, N} <: AbstractGPUArray{T, N} end end +GPUArrays.storage(a::CLArray) = a.data + ## convenience constructors From e229974426ea29065bb18e12fd682a03dfaf72be Mon Sep 17 00:00:00 2001 From: Tim Besard Date: Wed, 13 Nov 2024 07:51:55 +0100 Subject: [PATCH 2/2] Bump LLVM-SPIRV translator. (#267) --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index f484ee4b..9004b755 100644 --- a/Project.toml +++ b/Project.toml @@ -28,6 +28,6 @@ OpenCL_jll = "=2024.5.8" Printf = "1" Reexport = "1" SPIRVIntrinsics = "0.2" -SPIRV_LLVM_Translator_unified_jll = "0.6" +SPIRV_LLVM_Translator_unified_jll = "0.7" StaticArrays = "1" julia = "1.10"