You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 12, 2021. It is now read-only.
CuArrays.randn(11, 5) throws a CURANDError. Other combinations of odd numbers (e.g., CuArrays.randn(11, 5)) also throws.
To Reproduce
julia> CuArrays.randn(11, 5)
ERROR:CURANDError(code 105, Length requested is not a multple of dimension)
Stacktrace:
[1] generate_normal(::CuArrays.CURAND.RNG, ::CuArray{Float32,2}, ::Int64, ::Int64) at /home/takafumi/.julia/dev/CuArrays/src/rand/error.jl:51
[2] #randn!#3 at /home/takafumi/.julia/dev/CuArrays/src/rand/highlevel.jl:22 [inlined]
[3] randn! at /home/takafumi/.julia/dev/CuArrays/src/rand/highlevel.jl:22 [inlined]
[4] #randn!#19 at /home/takafumi/.julia/dev/CuArrays/src/rand/highlevel.jl:74 [inlined]
[5] randn!(::CuArray{Float32,2}) at /home/takafumi/.julia/dev/CuArrays/src/rand/highlevel.jl:74
[6] #randn#25(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Type{Float32}, ::Int64, ::Vararg{Int64,N} where N) at /home/takafumi/.julia/dev/CuArrays/src/rand/highlevel.jl:81
[7] randn(::Type{Float32}, ::Int64, ::Vararg{Int64,N}where N) at /home/takafumi/.julia/dev/CuArrays/src/rand/highlevel.jl:81
[8] #randn#29(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Int64, ::Vararg{Int64,N} where N) at /home/takafumi/.julia/dev/CuArrays/src/rand/highlevel.jl:87
[9] randn(::Int64, ::Int64) at /home/takafumi/.julia/dev/CuArrays/src/rand/highlevel.jl:87
[10] top-level scope at none:0
Expected behavior
It shouldn't throw.
Build log
(v1.1) pkg> build CuArrays
Building CUDAnative → `~/.julia/packages/CUDAnative/nItlk/deps/build.log`
Building Conda ─────→ `~/.julia/packages/Conda/kLXeC/deps/build.log`
Building FFTW ──────→ `~/.julia/packages/FFTW/2okGQ/deps/build.log`
shell> cat ~/.julia/packages/CUDAnative/nItlk/deps/build.log
Environment details (please complete this section)
Details on Julia:
Describe the bug
CuArrays.randn(11, 5)
throws aCURANDError
. Other combinations of odd numbers (e.g.,CuArrays.randn(11, 5)
) also throws.To Reproduce
Expected behavior
It shouldn't throw.
Build log
Environment details (please complete this section)
Details on Julia:
I'm using CuArrays.jl 3ab04e2
The text was updated successfully, but these errors were encountered: