Skip to content

Make svd_trunc pullback GPU friendly - #271

Open
kshyatt wants to merge 1 commit into
mainfrom
ksh/svd_trunc_gpu
Open

Make svd_trunc pullback GPU friendly#271
kshyatt wants to merge 1 commit into
mainfrom
ksh/svd_trunc_gpu

Conversation

@kshyatt

@kshyatt kshyatt commented Aug 17, 2026

Copy link
Copy Markdown
Member

Otherwise this hits scalar indexing

@kshyatt
kshyatt requested a review from lkdvos August 17, 2026 13:20
Comment thread src/pullbacks/svd.jl
AP = mul!(copy(A), US, Vᴴ, -1, 1)
AP ./= S[end]
S⁻¹ = S[end] ./ S
minS = minimum(S)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does last also work? Can we avoid blocking/syncing by using a view of the last element?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so 😬 let me try and report back

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.

2 participants