Skip to content

Commit b587b83

Browse files
pxl-thmaleadt
andauthored
Add KernelAbstractions.jl unsafe_free! (#1863)
Co-authored-by: Tim Besard <tim.besard@gmail.com>
1 parent 6f7660d commit b587b83

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ CUDA_Runtime_jll = "0.6"
4242
ExprTools = "0.1"
4343
GPUArrays = "8.6"
4444
GPUCompiler = "0.19"
45-
KernelAbstractions = "0.9"
45+
KernelAbstractions = "0.9.2"
4646
LLVM = "5"
4747
Preferences = "1"
4848
Random123 = "1.2"

src/CUDAKernels.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ CUDABackend(;prefer_blocks=false, always_inline=false) = CUDABackend(prefer_bloc
1313

1414
export CUDABackend
1515

16+
KernelAbstractions.unsafe_free!(x::CUDA.CuArray) = CUDA.unsafe_free!(x)
1617
KernelAbstractions.allocate(::CUDABackend, ::Type{T}, dims::Tuple) where T = CUDA.CuArray{T}(undef, dims)
1718
KernelAbstractions.zeros(::CUDABackend, ::Type{T}, dims::Tuple) where T = CUDA.zeros(T, dims)
1819
KernelAbstractions.ones(::CUDABackend, ::Type{T}, dims::Tuple) where T = CUDA.ones(T, dims)

0 commit comments

Comments
 (0)