Skip to content

build(hipblaslt): add Windows DLL VERSIONINFO metadata#9294

Open
tony-davis wants to merge 1 commit into
developfrom
users/tony-davis/rocm-27433-hipblaslt-dll-versioninfo
Open

build(hipblaslt): add Windows DLL VERSIONINFO metadata#9294
tony-davis wants to merge 1 commit into
developfrom
users/tony-davis/rocm-27433-hipblaslt-dll-versioninfo

Conversation

@tony-davis

@tony-davis tony-davis commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Summary

libhipblaslt.dll shipped without embedded PE VERSIONINFO metadata, so on Windows its file properties (Details tab) showed no File version / Product version. This adds a Windows version resource compiled into the DLL, matching the fix already landed for rocBLAS and hipBLAS in #6144. The parent defect (ROCM-20935 / PR #6144) covered rocblas.dll and hipblas.dll and explicitly left libhipblaslt.dll as a follow-up; ROCM-27433 is that follow-up.

Risk Assessment

Risk 2. Windows-only, build-time metadata change guarded on WIN32 and shared-library builds; no source/runtime behavior, ABI, or numerical impact. It reuses the existing hipblaslt_VERSION_* variables and the same resource pattern already proven on rocBLAS/hipBLAS.

Related

JIRA ID: ROCM-27433

Device / Architecture Coverage

Architecture-independent. This only affects the Windows PE resource embedded at link time of libhipblaslt.dll; it does not touch kernels, dispatch, or any gfx-specific path. A green Windows build in PR CI is sufficient; no device sweep required.

Testing Summary

  • Build: Windows shared-library build of hipBLASLt must link the generated version.rc into libhipblaslt.dll.
  • Manual verification: on the built libhipblaslt.dll, right-click > Properties > Details shows CompanyName, FileVersion, ProductVersion, and the git-commit comment (same check used to validate [rocBLAS][hipBLAS] users/torrezuk/rocm-20935 dll props #6144).

Testing Checklist

  • Windows hipBLASLt build (PR CI) - Status: Pending
  • Manual: libhipblaslt.dll Properties > Details shows version metadata - Status: Pending
  • PR CI - GitHub PR checks - Status: Pending

Flags / Guardrails

None. Change is unconditional for Windows shared builds; no runtime flag.

Adjacent Tests Considered

There is no automated harness for embedded PE VERSIONINFO in this repo; rocBLAS/hipBLAS (#6144) validated the equivalent change by manual inspection of the built DLL, and this follows the same approach. Linux and static builds are unaffected (the resource is WIN32 + shared only).

Risk Acceptance / Waivers

W-BUILD: build/packaging-only change with no product-code behavior change; regression coverage is a manual DLL-properties check plus the Windows CI build, consistent with how the sibling rocBLAS/hipBLAS fix (#6144) was validated. No automated PE-metadata test exists to add.

Technical Changes

  • Add projects/hipblaslt/library/src/version.rc.in (VERSIONINFO template; OriginalFilename libhipblaslt.dll).
  • In projects/hipblaslt/CMakeLists.txt, on WIN32: capture the git commit hash, stamp the copyright year, configure_file the template into the build tree, and add the generated version.rc to the shared hipblaslt target.

libhipblaslt.dll shipped without PE VERSIONINFO, so its Windows file
properties showed no File/Product version. Add a version.rc resource
(configured from the existing hipblaslt_VERSION_* variables) and compile
it into the shared DLL on Windows, mirroring the rocBLAS/hipBLAS fix in
PR #6144. Guarded on WIN32 + shared build, so Linux and static builds
are unaffected.

ROCM-27433
@tony-davis tony-davis changed the title [hipBLASLt] Add Windows DLL version metadata (VERSIONINFO) [ROCM-27433] [hipBLASLt] Add Windows DLL version metadata (VERSIONINFO) Jul 10, 2026
@therock-pr-bot

therock-pr-bot Bot commented Jul 10, 2026

Copy link
Copy Markdown

✅ All Checks Passed — Ready for Review

Check Status Details
🌿 Branch Name ✅ Pass
📝 PR Title/Description ✅ Pass
Forbidden Files ✅ Pass
🧪 Unit Test ✅ Pass PR does not contain code files — Unit Test auto-passed
🔎 pre-commit ✅ Pass
🚫 Draft PR 🔜 To Be Enabled
🚩 Feature Flag 🔜 To Be Enabled
📊 Code Coverage 🔜 To Be Enabled
🤖 therock-pr-bot ✅ Pass

🎉 All checks passed! This PR is ready for review.

📖 Need help? See the Policy FAQ for details on every check and how to fix failures.

@therock-pr-bot

therock-pr-bot Bot commented Jul 10, 2026

Copy link
Copy Markdown

🎉 All checks passed! This PR is ready for review.

@tony-davis tony-davis changed the title [hipBLASLt] Add Windows DLL version metadata (VERSIONINFO) build(hipblaslt): add Windows DLL VERSIONINFO metadata (ROCM-27433) Jul 10, 2026
@tony-davis tony-davis changed the title build(hipblaslt): add Windows DLL VERSIONINFO metadata (ROCM-27433) build(hipblaslt): add Windows DLL VERSIONINFO metadata Jul 10, 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 (76.84%) 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    #9294   +/-   ##
========================================
  Coverage    65.07%   65.07%           
========================================
  Files         2685     2685           
  Lines       422269   422269           
  Branches     62742    62742           
========================================
  Hits        274763   274763           
  Misses      126785   126785           
  Partials     20721    20721           
Flag Coverage Δ *Carryforward flag
TensileLite 35.07% <ø> (ø) Carriedforward from 17fba97
hipBLAS 90.81% <ø> (ø) Carriedforward from 17fba97
hipBLASLt 34.69% <ø> (ø)
hipCUB 82.68% <ø> (ø) Carriedforward from 17fba97
hipDNN 86.12% <ø> (ø) Carriedforward from 17fba97
hipFFT 50.88% <ø> (ø) Carriedforward from 17fba97
hipRAND 76.12% <ø> (ø) Carriedforward from 17fba97
hipSOLVER 69.18% <ø> (ø) Carriedforward from 17fba97
hipSPARSE 86.10% <ø> (ø) Carriedforward from 17fba97
rocBLAS 47.91% <ø> (ø) Carriedforward from 17fba97
rocFFT 51.65% <ø> (ø) Carriedforward from 17fba97
rocRAND 57.02% <ø> (ø) Carriedforward from 17fba97
rocSOLVER 76.84% <ø> (ø) Carriedforward from 17fba97
rocSPARSE 72.37% <ø> (ø) Carriedforward from 17fba97
rocThrust 91.36% <ø> (ø) Carriedforward from 17fba97

*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.

@tony-davis tony-davis marked this pull request as ready for review July 11, 2026 03:30
@tony-davis tony-davis requested review from a team as code owners July 11, 2026 03:30
Copilot AI review requested due to automatic review settings July 11, 2026 03:30

Copilot AI 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.

Pull request overview

Adds Windows PE VERSIONINFO resources to the hipBLASLt shared library so libhipblaslt.dll reports file/product version metadata in Windows file properties, aligning hipBLASLt with the existing rocBLAS/hipBLAS approach.

Changes:

  • Add a version.rc.in template for libhipblaslt.dll VERSIONINFO metadata.
  • Update hipBLASLt CMake to generate version.rc on Windows and link it into the shared hipblaslt target.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
projects/hipblaslt/library/src/version.rc.in Adds VERSIONINFO resource template with company/product/version strings and git-commit comment.
projects/hipblaslt/CMakeLists.txt Generates version.rc on WIN32 and adds it to the shared hipblaslt target sources.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread projects/hipblaslt/CMakeLists.txt
@tony-davis tony-davis enabled auto-merge (squash) July 11, 2026 03:42

@jinchen62 jinchen62 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.

LGTM!

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.

4 participants