Skip to content

Extend _normalizeparent to GPU arrays - #62

Merged
kshyatt merged 1 commit into
mainfrom
ksh/gpu_normalizeparent
Nov 17, 2026
Merged

kshyatt merged 1 commit into
mainfrom
ksh/gpu_normalizeparent

Conversation

@kshyatt

@kshyatt kshyatt commented Nov 17, 2026

Copy link
Copy Markdown
Member

This PR extends _normalizeparent to work for AMD and CUDA arrays as well. It supersedes some (but not all) of the work in QuantumKitHub/Strided.jl#102.

I realized I had misread the CUDA source (sorry!!) -- reshape only copies the buffer's address, it doesn't wholesale copy the entire array, so it does exactly what we want. So this appears to be fine based on my local tests so far for TO, TK, and PEPSKit, and cuts the TTFG(radient) by another 100-200s.

@kshyatt
kshyatt requested a review from lkdvos November 17, 2026 17:18
@kshyatt

kshyatt commented Nov 17, 2026

Copy link
Copy Markdown
Member Author

The JET thing seems like not my fault?

@codecov

codecov Bot commented Nov 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
ext/StridedViewsAMDGPUExt.jl 14.28% <100.00%> (+14.28%) ⬆️
ext/StridedViewsCUDACoreExt.jl 14.28% <100.00%> (+14.28%) ⬆️

... and 2 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kshyatt
kshyatt force-pushed the ksh/gpu_normalizeparent branch from f344de7 to 8f4969e Compare November 17, 2026 19:35
@kshyatt
kshyatt merged commit e7136c9 into main Nov 17, 2026
11 of 14 checks passed
@kshyatt
kshyatt deleted the ksh/gpu_normalizeparent branch November 17, 2026 20:08
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