Skip to content

view(data, idx) boundschecking is disproportionately expensive #1678

@maleadt

Description

@maleadt

It's expected that bounds checking costs something, but not 3 orders of magnitude as reported here with view(data, idx): https://discourse.julialang.org/t/correct-implementation-of-cuarrays-slicing-operations/90600. Can't this just throw a device-side exception instead?

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