Repository navigation
[windows] Patch TENSILE_LIBRARY_DIR in hipBLASLt. #783
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
faf5a86
b099c87
598fd07
92c99ce
59ce73a
7709438
be122d6
6bea94d
374f26b
fdc7610
5d6c552
16d18fa
6493549
031e3f8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,8 +34,6 @@ jobs: | |
| test_hipblaslt: | ||
| name: "hipBLASLt math-lib test" | ||
| runs-on: ${{ inputs.test_runs_on }} | ||
| # Currently, this test is not working with Windows. This test will be enabled once this library has been enabled | ||
| if: ${{ inputs.platform == 'linux' }} | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tests pass on Windows gfx1151: https://github.com/ROCm/TheRock/actions/runs/15495327375/job/43649536258?pr=783 Odd checkout failures on rocBLAS and rocPRIM though:
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Failed again on a retry: https://github.com/ROCm/TheRock/actions/runs/15495327375/job/43740951661?pr=783#step:2:28 @amd-justchen can you debug on that runner (
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure! I'll take a look! I just about am done monitoring the CI CPU builders. That error looks like the same one before. I'll be able to remote in to the machine to troubleshoot.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I suspect the build is only just now producing those files, so we should see if any permission/owner bits are set differently. Might need to change how those projects are built or make our CI workflows try harder to clean up the files during startup/shutdown. A common post-job hook for a self-hosted runner deletes the source directory. We used these on IREE: https://github.com/iree-org/iree/tree/41dcee93c7157955d94973addf6770cecf926849/build_tools/github_actions/runner/config/hooks. See
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Argh: https://github.com/ROCm/TheRock/actions/runs/16148483933/job/45579902751 Still failing with "File was unable to be removed" for rocblas, hipblaslt, rocprim, and hipcub tests. Going to retry those to see if the runners are flaky somehow. |
||
| strategy: | ||
| fail-fast: false | ||
| defaults: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| From 996367c9bb3d8dae69654e88adeecb163ab0b282 Mon Sep 17 00:00:00 2001 | ||
| From: Scott Todd <scott.todd0@gmail.com> | ||
| Date: Thu, 5 Jun 2025 17:48:02 -0700 | ||
| Subject: [PATCH 3/3] Unify HIPBLASLT_TENSILE_LIBRARY_DIR across Windows and | ||
| Linux. | ||
|
|
||
| Splitting the structure leads to further complexity in all downstream projects and tooling. | ||
| --- | ||
| library/CMakeLists.txt | 6 +----- | ||
| next-cmake/CMakeLists.txt | 6 +----- | ||
| 2 files changed, 2 insertions(+), 10 deletions(-) | ||
|
|
||
| diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt | ||
| index ccda26c5..5195f7d3 100644 | ||
| --- a/library/CMakeLists.txt | ||
| +++ b/library/CMakeLists.txt | ||
| @@ -238,11 +238,7 @@ install( | ||
| ) | ||
|
|
||
| if ( NOT BUILD_CUDA ) | ||
| - if (WIN32) | ||
| - set( HIPBLASLT_TENSILE_LIBRARY_DIR "\${CPACK_PACKAGING_INSTALL_PREFIX}hipblaslt/bin" CACHE PATH "path to tensile library" ) | ||
| - else() | ||
| - set( HIPBLASLT_TENSILE_LIBRARY_DIR "\${CPACK_PACKAGING_INSTALL_PREFIX}${CMAKE_INSTALL_LIBDIR}/hipblaslt" CACHE PATH "path to tensile library" ) | ||
| - endif() | ||
| + set( HIPBLASLT_TENSILE_LIBRARY_DIR "\${CPACK_PACKAGING_INSTALL_PREFIX}${CMAKE_INSTALL_LIBDIR}/hipblaslt" CACHE PATH "path to tensile library" ) | ||
| # For ASAN package, Tensile library files are not required | ||
| if( NOT ENABLE_ASAN_PACKAGING ) | ||
| if( BUILD_SHARED_LIBS ) | ||
| diff --git a/next-cmake/CMakeLists.txt b/next-cmake/CMakeLists.txt | ||
| index 3ba8eabc..0417749b 100644 | ||
| --- a/next-cmake/CMakeLists.txt | ||
| +++ b/next-cmake/CMakeLists.txt | ||
| @@ -328,11 +328,7 @@ if(HIPBLASLT_ENABLE_HOST) | ||
| endif() | ||
|
|
||
| if(HIPBLASLT_ENABLE_DEVICE) | ||
| - if(WIN32) | ||
| - set(HIPBLASLT_TENSILE_LIBRARY_DIR "\${CPACK_PACKAGING_INSTALL_PREFIX}hipblaslt/bin" CACHE PATH "path to tensile library") | ||
| - else() | ||
| - set(HIPBLASLT_TENSILE_LIBRARY_DIR "\${CPACK_PACKAGING_INSTALL_PREFIX}${CMAKE_INSTALL_LIBDIR}/hipblaslt" CACHE PATH "path to tensile library") | ||
| - endif() | ||
| + set(HIPBLASLT_TENSILE_LIBRARY_DIR "\${CPACK_PACKAGING_INSTALL_PREFIX}${CMAKE_INSTALL_LIBDIR}/hipblaslt" CACHE PATH "path to tensile library") | ||
| rocm_install( | ||
| DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/Tensile/library | ||
| DESTINATION ${HIPBLASLT_TENSILE_LIBRARY_DIR} | ||
| -- | ||
| 2.45.1.windows.1 | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| From cd43be77cf5dc4c2cf46d2449c4dddc186da3880 Mon Sep 17 00:00:00 2001 | ||
| From: Scott Todd <scott.todd0@gmail.com> | ||
| Date: Thu, 5 Jun 2025 17:51:14 -0700 | ||
| Subject: [PATCH 3/3] Unify ROCBLAS_TENSILE_LIBRARY_DIR across Windows and | ||
| Linux. | ||
|
|
||
| Splitting the structure leads to further complexity in all downstream projects and tooling. | ||
| --- | ||
| library/src/CMakeLists.txt | 6 +----- | ||
| 1 file changed, 1 insertion(+), 5 deletions(-) | ||
|
|
||
| diff --git a/library/src/CMakeLists.txt b/library/src/CMakeLists.txt | ||
| index f4bdfb5f..e39c74cf 100644 | ||
| --- a/library/src/CMakeLists.txt | ||
| +++ b/library/src/CMakeLists.txt | ||
| @@ -820,11 +820,7 @@ rocm_install_targets( | ||
| ) | ||
|
|
||
| if( BUILD_WITH_TENSILE ) | ||
| - if (WIN32) | ||
| - set( ROCBLAS_TENSILE_LIBRARY_DIR "\${CPACK_PACKAGING_INSTALL_PREFIX}/bin/rocblas" CACHE PATH "path to tensile library" ) | ||
| - else() | ||
| - set( ROCBLAS_TENSILE_LIBRARY_DIR "\${CPACK_PACKAGING_INSTALL_PREFIX}${CMAKE_INSTALL_LIBDIR}/rocblas" CACHE PATH "path to tensile library" ) | ||
| - endif() | ||
| + set( ROCBLAS_TENSILE_LIBRARY_DIR "\${CPACK_PACKAGING_INSTALL_PREFIX}${CMAKE_INSTALL_LIBDIR}/rocblas" CACHE PATH "path to tensile library" ) | ||
| # For ASAN package, Tensile library files(which are not shared libraries) are not required | ||
| if( NOT ENABLE_ASAN_PACKAGING ) | ||
| if( BUILD_SHARED_LIBS ) | ||
| -- | ||
| 2.45.1.windows.1 | ||
|
|
Uh oh!
There was an error while loading. Please reload this page.