Skip to content

Illegal memory access after aligned_sizeof changes #2790

Open
@maleadt

Description

@maleadt

MWE from https://discourse.julialang.org/t/check-bounds-no-causes-illegal-memory-access-when-using-rand-in-cuda-kernel/129455, run under --check-bounds=no:

using CUDA
N = 10^5
A = CuArray{Float32}(undef, N)
idx = CUDA.zeros(Int, N)
CUDA.@sync sortperm!(idx, A)
ERROR: LoadError: CUDA error: an illegal memory access was encountered (code 700, ERROR_ILLEGAL_ADDRESS)

Bisected to #2757 (cc @vchuravy).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions