JuliaGPU / GPUArrays.jl

Reusable array functionality for Julia's various GPU backends.
MIT License
313 stars 74 forks source link

Rework host indexing. #499

Closed maleadt closed 8 months ago

maleadt commented 8 months ago

The implementation was a bit messy. This should also make it easier to override scalar indexing in a back-end without affecting vectorized indexing. It also moves bounds checking to the CPU, which should improve the case where the array and indices are on the GPU already.

Fixes https://github.com/JuliaGPU/CUDA.jl/issues/1678