Skip to content

Fix xDR Deflate alignment and nvCOMP output buffers - #81

Merged
tpn merged 1 commit into
mainfrom
codex/release-xdr-deflate-contract-20260929
Sep 30, 2026
Merged

tpn merged 1 commit into
mainfrom
codex/release-xdr-deflate-contract-20260929

Conversation

@tpn

@tpn tpn commented Sep 30, 2026

Copy link
Copy Markdown
Collaborator

Gzip header removal can leave raw DEFLATE payloads at addresses that do not meet nvCOMP’s four-byte input alignment. The existing native call also omits output buffers needed by nvCOMP 5.2; the GPU regression tests reproduced an invalid-value error without the actual-size buffer.

Repack unaligned payloads, retain their buffers through asynchronous decoding, and supply native status and actual-size scratch with cleanup on failure. This extracts the decoder correctness fixes from #76 while preserving the existing CUDA backend and public API.

Validation: 397 decoder and FITS integration tests passed with a rebuilt native extension on an RTX PRO 6000 Blackwell. The CPU xDR suite passed 286 tests (11 GPU-only skips); make lint and all public hooks passed. Coverage includes optional Gzip headers, raw payloads, unaligned views, pooled allocations, and non-default streams.

@tpn
tpn requested a review from melo-gonzo as a code owner September 30, 2026 02:09
@coderabbitai

coderabbitai Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (1)
  • ai-review

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository: NVIDIA/cuPhoton/.coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 8377b9cb-a5bd-46d3-ba02-62e1ddeef7e9

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

@melo-gonzo melo-gonzo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM. All 343 selected decoder and FITS tests passed on RTX 6000 Ada using this PR’s CI-built native extension, including alignment, pooled buffers, and non-default streams. No blocking findings in the buffer ownership and cleanup review.

Align raw payloads before decoding and retain their device buffers
until stream work completes. Supply status and actual-size scratch
for nvCOMP compatibility, including pooled and failure paths.

Signed-off-by: Trent Nelson <trentn@nvidia.com>
@tpn
tpn force-pushed the codex/release-xdr-deflate-contract-20260929 branch from b781aa2 to 9629507 Compare September 30, 2026 04:17
@tpn
tpn merged commit bf4a77e into main Sep 30, 2026
61 checks passed
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