Skip to content

Out-of-bounds access in randn! #614

@avik-pal

Description

@avik-pal
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions