JuliaGPU / JuliaGPU/GPUArrays.jl
Assumptions in abstract sparse array interface
- Dominant language
- Julia
- Stars
- 450
- Forks
- 104
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 10
Description
To fully harmonize formats, we need to specify:
- In CSC/CSR, whether the indices are sorted or not within each column/row
- CUDA: not necessarily
- AMDGPU: yes
- In COO, whether the coefficients are sorted and how
- CUDA: sorted by row but not necessarily by column inside each row
- AMDGPU: sorted by row and then by column inside each row
- In all formats, whether index duplicates are allowed
- CUDA: no
- AMDGPU: no
- Whether the interpretation of BSR is the same (this seems like a spot where backend variation is expected)
If we go for the strict option and the CUDA input doesn't satisfy the sorting assumptions, we need to error or perform a sorting step.
Useful table with links to backend docs: https://github.com/albertomercurio/DeviceSparseArrays.jl/issues/8
Related: https://github.com/JuliaGPU/CUDA.jl/pull/2942
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.