Skip to content

Run the BLAS 1 tests for wrapped arrays on every back-end - #889

Draft
maleadt wants to merge 1 commit into
mainfrom
tb/dot-shared-tests
Draft

maleadt wants to merge 1 commit into
mainfrom
tb/dot-shared-tests

Conversation

@maleadt

@maleadt maleadt commented Dec 3, 2026

Copy link
Copy Markdown
Member

Moves the BLAS 1 cases that #888 only ran on JLArrays into the shared test suite: dot of adjoint pairs, Hermitian pairs (including the real result type), reshaped arrays, operands of different shapes, the Diagonal size mismatch, rdiv!// of a vector by a Diagonal, and axpy!/axpby! with operands of different shapes. It also adds Float16 to the dot of wrapped arrays, and tests dot of stepped views for BLAS element types too.

Draft until the back-end PRs are merged: released back-ends' own methods take these calls and get them wrong, and back-ends' CI runs this test suite. AMDGPU.jl's strided dot fails on stepped and Float16 views (JuliaGPU/AMDGPU.jl#1229), CUDA.jl's catch-all dot is ambiguous for adjoint and Hermitian pairs (JuliaGPU/CUDA.jl#3626), and oneAPI.jl's axpy! rejects operands of different shapes (JuliaGPU/oneAPI.jl#779).

With those three PR branches, these tests pass with CUDA.jl, AMDGPU.jl and oneAPI.jl (A770), and with released Metal.jl and OpenCL.jl (pocl), and on JLArrays with Julia 1.10 and 1.13.

Moves the dot, rdiv! and axpy!/axpby! cases that only ran on JLArrays into the
shared test suite, adds Float16 to the dot of wrapped arrays, and tests dot
products of stepped views of BLAS element types. Released back-ends' own
methods got these wrong; CUDA.jl, AMDGPU.jl and oneAPI.jl remove those methods
when they adopt GPUArrays' BLAS hooks.

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

1 participant