From ac537f8929efefdaf1de5123fe53e05a1ac5d78e Mon Sep 17 00:00:00 2001 From: Tim Besard Date: Wed, 30 Oct 2024 13:20:40 +0100 Subject: [PATCH] Adapt to JuliaGPU/GPUArrays.jl#567. --- 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)