-
Notifications
You must be signed in to change notification settings - Fork 87
Open
Labels
Description
julia> using Random, CUDA
julia> x = CuArray{Float32}(undef, 1024, 1024);
julia> Random.randn!(GPUArrays.default_rng(CuArray), x)
1024×1024 CuArray{Float32, 2, CUDA.DeviceMemory}:
ERROR: a BoundsError was thrown during kernel execution on thread (353, 1, 1) in block (15, 1, 1).
Out-of-bounds array access
Stacktrace:
[1] throw_boundserror at /mnt/.julia/packages/CUDA/Wfi8S/src/device/quirks.jl:15
[2] multiple call sites at unknown:0