From 9019b56c05055db3e5dcd93ca0d08bf264c908cd Mon Sep 17 00:00:00 2001 From: Tim Besard Date: Wed, 30 Oct 2024 14:28:49 +0100 Subject: [PATCH] Adapt to JuliaGPU/GPUArrays.jl#567. (#475) --- Project.toml | 2 +- src/array.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index 4e7f1bd8..2ac3cdf7 100644 --- a/Project.toml +++ b/Project.toml @@ -40,7 +40,7 @@ BFloat16s = "0.5" CEnum = "0.4, 0.5" CodecBzip2 = "0.8" ExprTools = "0.1" -GPUArrays = "11" +GPUArrays = "11.1" GPUCompiler = "0.26, 0.27, 1" KernelAbstractions = "0.9.1" LLVM = "7.2, 8, 9" diff --git a/src/array.jl b/src/array.jl index 5eacda28..c6c4d110 100644 --- a/src/array.jl +++ b/src/array.jl @@ -112,7 +112,7 @@ function MtlArray{T,N}(buf::B, dims::Dims{N}; kwargs...) where {B<:MTLBuffer,T,N return MtlArray{T,N}(data, dims; kwargs...) end -unsafe_free!(a::MtlArray) = GPUArrays.unsafe_free!(a.data) +GPUArrays.storage(a::MtlArray) = a.data """ device(<:MtlArray)