Skip to content

fix(j2k): classify GPU Tier-1 decode failures - #315

Merged
jcwal1516 merged 1 commit into
mainfrom
fix/backend-decode-classification
Nov 2, 2026
Merged

jcwal1516 merged 1 commit into
mainfrom
fix/backend-decode-classification

Conversation

@jcwal1516

@jcwal1516 jcwal1516 commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

GPU Tier-1 FAIL statuses were reported through generic runtime-error classifications. Add a Decode class so callers can distinguish decode execution failures while retaining the backend diagnostics.

  • Append AdapterErrorKind::Decode and BackendErrorKind::Decode to existing non-exhaustive enums, preserving existing discriminants, and add BackendError::decode.
  • Map Metal classic/HT FAIL statuses through the existing Error::Decode(J2kError::Backend) wrapper. Their display now starts with backend failed (decode):; coding path, status, detail and batch source index remain in the diagnostic.
  • Classify CUDA as Decode only for a CudaTier1JobFailed whose direct source is a bare KernelJobStatus with FAIL code 1. Typed source and job attribution are preserved. Unsupported or unknown statuses, raw runtime failures and combined cleanup/release failures retain their existing classifications.

The ordinary API inventory adds exactly three items. The 0.13.2 API report and review are updated against published 0.13.1; no new Metal error variant or CodecError method is introduced.

Validation: focused facade error tests, Metal error/status tests, and CUDA error tests with cuda-runtime both disabled and enabled; formatting, strict and workspace clippy, repository lint, and the full semver check pass. Tests cover the selected FAIL statuses, source attribution and the runtime/unsupported/cleanup exclusions.

CUDA and Metal quick validation passed on this PR head.

@jcwal1516
jcwal1516 merged commit 619e2f9 into main Nov 2, 2026
30 of 32 checks passed
@jcwal1516
jcwal1516 deleted the fix/backend-decode-classification branch November 2, 2026 00:16
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