Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
VarLad opened this issue Apr 24, 2025 · 1 comment
Open

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

VarLad opened this issue Apr 24, 2025 · 1 comment

Comments

@VarLad
Copy link
Contributor

VarLad commented Apr 24, 2025

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.

@VarLad
Copy link
Contributor Author

VarLad commented May 1, 2025

fixed by JuliaGPU/GPUArrays.jl#568

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant