Skip to content

Commit fe250fe

Browse files
committed
use check_eltype
1 parent 9cdea3d commit fe250fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/array.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ end
231231
function Base.unsafe_wrap(::Type{CuArray{T,N,M}},
232232
ptr::CuPtr{T}, dims::NTuple{N,Int};
233233
own::Bool=false, ctx::CuContext=context()) where {T,N,M}
234+
check_eltype("unsafe_wrap(CuArray, ...)", T)
234235
sz = prod(dims) * sizeof(T)
235236

236237
# create a memory object

0 commit comments

Comments
 (0)