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

Commit

Permalink
Merge pull request #558 from JuliaGPU/tb/pooled
Browse files Browse the repository at this point in the history
Preserve the pooled property when deriving a CuArray.
  • Loading branch information
maleadt authored Jan 7, 2020
2 parents 3259594 + 9766d8f commit 43afa0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/array.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ end

# derived array (e.g. view, reinterpret, ...)
function CuArray{T,N}(ptr::CuPtr{T}, dims::Dims{N}, parent::P) where {T,N,P<:CuArray}
self = CuArray{T,N,P}(ptr, dims, parent, false, parent.ctx)
self = CuArray{T,N,P}(ptr, dims, parent, parent.pooled, parent.ctx)
retain(self)
retain(parent)
finalizer(unsafe_free!, self)
Expand Down

0 comments on commit 43afa0b

Please sign in to comment.