Torsten Keßler pushed to branch main at Arch Linux / Packaging / Packages /
hipblaslt
Commits:
c7e51c9f by Joseph Ng at 2025-08-04T21:12:06-07:00
gfx12 support
- - - - -
3 changed files:
- .SRCINFO
- PKGBUILD
- + hipblaslt-clang.patch
Changes:
=====================================
.SRCINFO
=====================================
@@ -24,7 +24,9 @@ pkgbase = hipblaslt
depends = rocblas
source =
hipblaslt-6.4.2.tar.gz::https://github.com/ROCm/hipBLASLt/archive/rocm-6.4.2.tar.gz
source = hipblaslt-find-msgpack5.patch
+ source = hipblaslt-clang.patch
sha256sums =
5e5f4a84aa4e5ef6018d0d91e97fc20394c7c17822cc8fb8307fff07b1d91823
sha256sums =
8e6d134a1d45de814099dfe591296de5e1d47f9906ccf9c51d7f2228e992c5f4
+ sha256sums =
46a816b7d0555f30362467713e2356af83865e7ff2d727484690606bf89b9f14
pkgname = hipblaslt
=====================================
PKGBUILD
=====================================
@@ -11,14 +11,17 @@ makedepends=('rocm-cmake' 'rocm-toolchain' 'python'
'cmake' 'git' 'ninja'
'msgpack-cxx' 'python-msgpack' 'python-joblib' 'python-pyaml'
'hipblas-common')
_git='https://github.com/ROCm/hipBLASLt'
source=("$pkgname-$pkgver.tar.gz::$_git/archive/rocm-$pkgver.tar.gz"
- "$pkgname-find-msgpack5.patch")
+ "$pkgname-find-msgpack5.patch"
+ "$pkgname-clang.patch")
sha256sums=('5e5f4a84aa4e5ef6018d0d91e97fc20394c7c17822cc8fb8307fff07b1d91823'
- '8e6d134a1d45de814099dfe591296de5e1d47f9906ccf9c51d7f2228e992c5f4')
+ '8e6d134a1d45de814099dfe591296de5e1d47f9906ccf9c51d7f2228e992c5f4'
+ '46a816b7d0555f30362467713e2356af83865e7ff2d727484690606bf89b9f14')
_dirname="$(basename "$_git")-$(basename "${source[0]}" ".tar.gz")"
prepare() {
cd "$_dirname"
patch -Np1 -i "$srcdir/$pkgname-find-msgpack5.patch"
+ patch -Np1 -i "$srcdir/$pkgname-clang.patch"
}
build() {
@@ -33,7 +36,7 @@ build() {
-D CMAKE_CXX_COMPILER=amdclang++
-D CMAKE_INSTALL_PREFIX=/opt/rocm
-D Tensile_CODE_OBJECT_VERSION=default
- -D AMDGPU_TARGETS="gfx908;gfx908;gfx90a;gfx90a;gfx942;gfx1100;gfx1101"
+ -D
AMDGPU_TARGETS="gfx908;gfx908;gfx90a;gfx90a;gfx942;gfx1100;gfx1101;gfx1200;gfx1201"
)
# -fcf-protection is not supported by HIP, see
#
https://rocm.docs.amd.com/projects/llvm-project/en/latest/reference/rocmcc.html#support-status-of-other-clang-options
=====================================
hipblaslt-clang.patch
=====================================
@@ -0,0 +1,17 @@
+Fix detection of non-AMD clang. Without it, version is set to 0.0.0,
+and tensile produces incorrect LLVM code (LLVM<19 syntax for LLVM 20).
+
+Upstream bug: https://github.com/ROCm/hipBLASLt/issues/2060
+--- a/tensilelite/Tensile/Common.py
++++ b/tensilelite/Tensile/Common.py
+@@ -1753,8 +1753,8 @@ def assignGlobalParameters(config, cxxCompiler=None):
+ if 'HIP version' in line:
+ globalParameters['HipClangVersion'] = line.split()[2]
+ print1("# Found hipcc version " + globalParameters['HipClangVersion'])
+- if 'AMD clang version' in line:
+- globalParameters['AMDClangVersion'] = line.split()[3]
++ if 'clang version ' in line:
++ globalParameters['AMDClangVersion'] = line.split('clang version ')[1]
+ print1("# Found clang version " + globalParameters['AMDClangVersion'])
+
+ except (subprocess.CalledProcessError, OSError) as e:
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/hipblaslt/-/commit/c7e51c9fbf736d4afbd5a4a64b09718f87256991
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/hipblaslt/-/commit/c7e51c9fbf736d4afbd5a4a64b09718f87256991
You're receiving this email because of your account on gitlab.archlinux.org.