Skip to content
This repository was archived by the owner on Mar 12, 2021. It is now read-only.

Commit 43afa0b

Browse files
authored
Merge pull request #558 from JuliaGPU/tb/pooled
Preserve the pooled property when deriving a CuArray.
2 parents 3259594 + 9766d8f commit 43afa0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/array.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ end
2727

2828
# derived array (e.g. view, reinterpret, ...)
2929
function CuArray{T,N}(ptr::CuPtr{T}, dims::Dims{N}, parent::P) where {T,N,P<:CuArray}
30-
self = CuArray{T,N,P}(ptr, dims, parent, false, parent.ctx)
30+
self = CuArray{T,N,P}(ptr, dims, parent, parent.pooled, parent.ctx)
3131
retain(self)
3232
retain(parent)
3333
finalizer(unsafe_free!, self)

0 commit comments

Comments
 (0)