Skip to content

Commit

Permalink
change boolean array type
Browse files Browse the repository at this point in the history
  • Loading branch information
omlins committed Apr 27, 2023
1 parent 4177324 commit 68e3939
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ParallelKernel/allocators.jl
Expand Up @@ -416,8 +416,8 @@ falses_cpu(::Type{T}, blocklength, args...) where {T<:Union{SArray,FieldArray}}
zeros_cuda(::Type{T}, blocklength, args...) where {T<:Number} = (check_datatype(T); CUDA.zeros(T, args...)) # (blocklength is ignored if neither celldims nor celltype is set)
ones_cuda(::Type{T}, blocklength, args...) where {T<:Number} = (check_datatype(T); CUDA.ones(T, args...)) # ...
rand_cuda(::Type{T}, blocklength, args...) where {T<:Union{Number,Enum}} = CuArray(rand_cpu(T, blocklength, args...)) # ...
falses_cuda(::Type{T}, blocklength, args...) where {T<:Bool} = CUDA.falses(args...) # ...
trues_cuda(::Type{T}, blocklength, args...) where {T<:Bool} = CUDA.trues(args...) # ...
falses_cuda(::Type{T}, blocklength, args...) where {T<:Bool} = CUDA.zeros(Bool, args...) # ...
trues_cuda(::Type{T}, blocklength, args...) where {T<:Bool} = CUDA.ones(Bool, args...) # ...
fill_cuda(::Type{T}, blocklength, args...) where {T<:Union{Number,Enum}} = CuArray(fill_cpu(T, blocklength, args...)) # ...

zeros_cuda(::Type{T}, blocklength, args...) where {T<:Union{SArray,FieldArray}} = (check_datatype(T); fill_cuda(T, blocklength, 0, args...))
Expand Down

0 comments on commit 68e3939

Please sign in to comment.