Accessing a matrix via boolean mask doesn't work
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Start by running the Julia MWE with OpenCL and pocl_jll to reproduce boolean-mask indexing failure, then compare it with the working CUDA behavior. Locate the OpenCL.jl path handling array indexing and add coverage for a Boolean OpenCL array mask; done means x12[x13] returns the selected elements without a BoundsError.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Julia
- Stars
- 313
- Forks
- 50
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 43
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from JuliaGPU/OpenCL.jl
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
Maintainers usually reply within 1 day
-
kernels latency regression
Difficulty 4/5 3-5 days Newbie friendliness 52/100
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
Maintainers usually reply within 1 day
All issues in JuliaGPU/OpenCL.jl
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 61/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
JuliaDecisionFocusedLearning/ImplicitDifferentiation.jl#231 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
JuliaDocs/PkgPage.jl#52 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day