Skip to content

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

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.

Activity

  1. VarLad commented on May 1, 2025

    @VarLad
    ContributorAuthor
  2. added
    JuliaAbout supporting Julia code, packages, or interfaces.
    on Jul 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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