Skip to content

Accessing a matrix via boolean mask doesn't work #301

@VarLad

Description

@VarLad

MWE:

using OpenCL, pocl_jll
x12 = OpenCL.rand(10)
x13 = OpenCL.rand(Bool, 10)
x12[x13]

Fails with:

BoundsError: attempt to access 10-element OpenCL.CLArray{Float32, 1, OpenCL.cl.UnifiedDeviceMemory} at index [10-element OpenCL.CLArray{Bool, 1, OpenCL.cl.UnifiedDeviceMemory}]

Its CUDA alternative works as desired.

Metadata

Metadata

Assignees

No one assigned

    Labels

    JuliaAbout supporting Julia code, packages, or interfaces.upstream

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions