Skip to content

hipblaslt: restore *_EXT hipDataType compatibility macros#7118

Closed
tony-davis wants to merge 1 commit into
developfrom
users/todavis/ROCM-24233
Closed

hipblaslt: restore *_EXT hipDataType compatibility macros#7118
tony-davis wants to merge 1 commit into
developfrom
users/todavis/ROCM-24233

Conversation

@tony-davis
Copy link
Copy Markdown
Contributor

@tony-davis tony-davis commented May 6, 2026

Why this change

[hipblaslt] Add support for gfx950 mxfp4 (#6499) removed the legacy int const declarations for HIP_R_6F_E2M3_EXT, HIP_R_6F_E3M2_EXT, and HIP_R_4F_E2M1_EXT from hipblaslt-types.h after those cases were represented on HIP’s hipDataType enum (HIP_R_6F_E2M3, HIP_R_6F_E3M2, HIP_R_4F_E2M1). That was an ABI/header compatibility break: downstream projects that still reference the *_EXT identifiers (notably portable Linux JAX wheel builds compiling XLA’s ROCm path) fail with undeclared-identifier errors, even though the underlying enum values are unchanged.

What we do here

Restore the *_EXT spellings as #define aliases to the canonical HIP enumerators when building for AMD HIP (#include <hip/library_types.h>), guarded with #ifndef so overrides remain possible. For other compilation modes, fall back to the prior integer literals (31, 32, 33) so behavior matches the old constants. HIP_R_8F_E5M3_EXT stays a single int const extension as today.

This follows the compatibility direction: unbreak consumers without duplicating symbols or forcing an immediate mass rename in JAX/XLA.

Made with Cursor
ROCM-24233

…OCM-24233)

PR #6499 dropped int const HIP_R_*_EXT for mxfp4 types now represented in
HIP's hipDataType enum. Re-introduce those spellings as preprocessor aliases
to HIP_R_6F_E2M3 / HIP_R_6F_E3M2 / HIP_R_4F_E2M1 when building for AMD HIP,
with numeric fallbacks elsewhere, matching prior constant values.

Fixes JAX/XLA builds that still reference HIP_R_4F_E2M1_EXT, without
duplicating symbols or conflicting with HIP_R_8F_E5M3_EXT.

Co-authored-by: Cursor <cursoragent@cursor.com>
Copilot AI review requested due to automatic review settings May 6, 2026 16:09
@tony-davis tony-davis requested review from a team as code owners May 6, 2026 16:09
@tony-davis tony-davis changed the title hipblaslt: restore *_EXT hipDataType compatibility macros (ROCM-24233) hipblaslt: restore *_EXT hipDataType compatibility macros May 6, 2026
@talumbau talumbau requested a review from bnemanich May 6, 2026 16:28
@tony-davis
Copy link
Copy Markdown
Contributor Author

Overtaken by PR #7078

@tony-davis tony-davis closed this May 6, 2026
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

❌ Your project status has failed because the head coverage (77.83%) is below the target coverage (80.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #7118      +/-   ##
===========================================
- Coverage    65.25%   65.25%   -0.00%     
===========================================
  Files         2083     2083              
  Lines       323506   323504       -2     
  Branches     42438    42437       -1     
===========================================
- Hits        211075   211073       -2     
  Misses       94896    94896              
  Partials     17535    17535              
Flag Coverage Δ *Carryforward flag
hipBLAS 90.65% <ø> (ø) Carriedforward from 1859dae
hipBLASLt 39.86% <ø> (ø)
hipCUB 82.21% <ø> (ø) Carriedforward from 1859dae
hipDNN 85.51% <ø> (-<0.01%) ⬇️ Carriedforward from 1859dae
hipFFT 53.90% <ø> (ø) Carriedforward from 1859dae
hipRAND 76.12% <ø> (ø) Carriedforward from 1859dae
hipSOLVER 69.24% <ø> (ø) Carriedforward from 1859dae
hipSPARSE 84.70% <ø> (ø) Carriedforward from 1859dae
rocBLAS 48.11% <ø> (ø) Carriedforward from 1859dae
rocFFT 48.37% <ø> (ø) Carriedforward from 1859dae
rocPRIM 38.99% <ø> (ø) Carriedforward from 1859dae
rocRAND 57.03% <ø> (ø) Carriedforward from 1859dae
rocSOLVER 77.83% <ø> (ø) Carriedforward from 1859dae
rocSPARSE 72.82% <ø> (ø) Carriedforward from 1859dae

*This pull request uses carry forward flags. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants