Skip to content

fix(kvflash): skip the page-stream sync when only host tensors are attached - #886

Merged
davide221 merged 1 commit into
mainfrom
fix/kvflash-host-tensor-sync
Oct 24, 2026
Merged

davide221 merged 1 commit into
mainfrom
fix/kvflash-host-tensor-sync

Conversation

@davide221

@davide221 davide221 commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Main CI is red since #848 (0711d4c): the hosted Build job aborts 22 KvflashPagerSerde/Truncate unit tests with cudaStreamSynchronize(page) failed: CUDA driver is a stub library.

Cause: #854 made a failed page-stream sync abort, and synced the default stream whenever any KV tensor was attached. #848's pager tests attach CPU-backend tensors with pageable host backing on the stub-driver runner, where cudaStreamCreate and every sync fail. Each PR passed CI alone.

Fix: host tensors are paged with memcpy, so nothing is queued for them. sync_page_stream_() now syncs only when a page stream exists or a device tensor is attached. GPU paths are unchanged (device tensors still sync and still abort on error).

🤖 Generated with Claude Code

View guided diff

…tached

#854 made a failed cudaStreamSynchronize abort, and synced the default
stream whenever any KV tensor was attached. #848's pager serde and truncate
tests attach CPU-backend tensors with pageable host backing on hosted CI,
where the stub driver fails cudaStreamCreate and every sync. Host tensors
are paged with memcpy, so nothing is ever queued for them: only sync when a
page stream exists or a device tensor is attached.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 1 file

Tip: Get a Slack DM when cubic finishes reviewing your PRs. Connect Slack

View guided diff | Re-trigger cubic

@davide221
davide221 merged commit 74ee451 into main Oct 24, 2026
12 of 17 checks passed
davide221 added a commit to dusterbloom/lucebox-hub that referenced this pull request Oct 24, 2026
davide221 added a commit to dusterbloom/lucebox-hub that referenced this pull request Oct 24, 2026
…estore) into kvflash pooled grid branch

Co-Authored-By: Claude Opus 5.5 <[email protected]>
davide221 added a commit to dusterbloom/lucebox-hub that referenced this pull request Oct 24, 2026
…estore) into kvflash session restore branch

Co-Authored-By: Claude Opus 5.5 <[email protected]>
davide221 added a commit to dusterbloom/lucebox-hub that referenced this pull request Oct 24, 2026
…t pool layout restore) into kvflash turn checkpoints branch

Luce-Org#852 carried the pre-10-23 Luce-Org#848-Luce-Org#851 chain, which conflicted with the
rebased Luce-Org#851 in 10 files. This tree is the new Luce-Org#851 branch plus this PR's
own commits (046516e, d664068, 0e2ff1b, b3ebe9b) re-applied, all clean;
342f22d duplicates Luce-Org#851's 784e521 and is already there.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@davide221
davide221 deleted the fix/kvflash-host-tensor-sync branch November 6, 2026 19:24
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