Skip to content

StaticArrays? #157

@rafaqz

Description

@rafaqz

I have a strange recurring bug with static arrays where I am getting a bounds error running
accessing an SMatrix on an immutable struct using a cuda gpu, where it runs fine on the CPU.

What is strange is that it was initially broken, then worked for a few weeks on the GPU and now doesn't again after updating packages, or something.

[8] #19 at /home/raf/.julia/packages/GPUArrays/3E1qk/src/broadcast.jl:15
Reason: unsupported call to the Julia runtime (jl_bounds_error_unboxed_int)
Stacktrace:
 [1] getindex at tuple.jl:24
 [2] getindex at /home/raf/.julia/packages/StaticArrays/Ze5H3/src/SMatrix.jl:76
 [3] macro expansion at /home/raf/.julia/packages/StaticArrays/Ze5H3/src/indexing.jl:28
 [4] _getindex_scalar at /home/raf/.julia/packages/StaticArrays/Ze5H3/src/indexing.jl:16
 [5] getindex at /home/raf/.julia/packages/StaticArrays/Ze5H3/src/indexing.jl:12

If the compiler can infer the indices it works fine, but otherwise not at all, even
if you bound them to well within the matrix.

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