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)