Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt authored Oct 30, 2024
1 parent c2f0535 commit 7d23bbf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Crayons = "4"
DataFrames = "1"
EnzymeCore = "0.8.2"
ExprTools = "0.1"
GPUArrays = "11"
GPUArrays = "11.1"
GPUCompiler = "0.24, 0.25, 0.26, 0.27, 1"
KernelAbstractions = "0.9.2"
LLVM = "9.1"
Expand Down
9 changes: 1 addition & 8 deletions src/array.jl
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,7 @@ mutable struct CuArray{T,N,M} <: AbstractGPUArray{T,N}
end
end

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


## alias detection
Expand Down

0 comments on commit 7d23bbf

Please sign in to comment.