Skip to content
This repository was archived by the owner on May 27, 2021. It is now read-only.
This repository was archived by the owner on May 27, 2021. It is now read-only.

setindex bounds checking regression on 1.1 (InvalidIRError) #313

@maleadt

Description

@maleadt

The following works on Julia 1.0, not on 1.1:

using CuArrays

A = CuArray{Float64}(undef, 1, 1)
A[1:1, 1:1] .= 0

Execute with julia --check-bounds=yes (cfr. tests)

Reason: unsupported call to the Julia runtime (call to jl_gc_pool_alloc)
Stacktrace:
 [1] throw_boundserror at subarray.jl:43
 [2] checkbounds at abstractarray.jl:449
 [3] setindex! at subarray.jl:268
 [4] _setindex! at abstractarray.jl:1050
 [5] setindex! at abstractarray.jl:1020
 [6] #23 at /home/tbesard/Julia/GPUArrays/src/broadcast.jl:50

CUDAnative should catch calls to throw_boundserror and null them, which for some reason doesn't seem to be happening for this example. This is the reason tests have been failing on -dev for a while.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions