Skip to content

Define copyto! for GPU Diagonals - #829

Open
christiangnrd wants to merge 1 commit into
mainfrom
diagcopy
Open

christiangnrd wants to merge 1 commit into
mainfrom
diagcopy

Conversation

@christiangnrd

Copy link
Copy Markdown
Member

Performance improvement and works around a failure on Julia 1.10 trying to port JLArrays to KA 0.10

@christiangnrd
christiangnrd added this pull request to stack #830 October 20, 2026 14:36
@christiangnrd christiangnrd changed the title Define copyto for GPU Diagonals Define copyto! for GPU Diagonals Oct 21, 2026
The generic AnyGPUArray copyto! is more specific than LinearAlgebra's
Diagonal method, so it launched a kernel over all n^2 entries calling
setindex!(::Diagonal). On Julia 1.10 that method's error path eagerly
builds a string, which POCL/SPIR-V rejects, breaking cholesky(::Diagonal)
for JLArrays with KA 0.10.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

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