Skip to content

Commit 7d23bbf

Browse files
authored
1 parent c2f0535 commit 7d23bbf

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Crayons = "4"
5959
DataFrames = "1"
6060
EnzymeCore = "0.8.2"
6161
ExprTools = "0.1"
62-
GPUArrays = "11"
62+
GPUArrays = "11.1"
6363
GPUCompiler = "0.24, 0.25, 0.26, 0.27, 1"
6464
KernelAbstractions = "0.9.2"
6565
LLVM = "9.1"

src/array.jl

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,7 @@ mutable struct CuArray{T,N,M} <: AbstractGPUArray{T,N}
8484
end
8585
end
8686

87-
"""
88-
CUDA.unsafe_free!(a::CuArray)
89-
90-
Release the memory of an array for reuse by future allocations. This operation is
91-
performed automatically by the GC when an array goes out of scope, but can be called
92-
earlier to reduce pressure on the memory allocator.
93-
"""
94-
unsafe_free!(xs::CuArray) = GPUArrays.unsafe_free!(xs.data)
87+
GPUArrays.storage(a::CuArray) = a.data
9588

9689

9790
## alias detection

0 commit comments

Comments
 (0)