Accessing a matrix via boolean mask doesn't work
Open
Julia
upstream
- Dominant language
- Julia
- Stars
- 312
- Forks
- 50
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 11
Description
MWE:
```julia
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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.