Torsten Keßler pushed to branch main at Arch Linux / Packaging / Packages / 
rocblas


Commits:
33e0cb17 by Torsten Keßler at 2026-06-04T22:17:49+02:00
upgpkg: 7.2.4-2

Add support for more architectures

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,11 +1,12 @@
 pkgbase = rocblas
        pkgdesc = Next generation BLAS implementation for ROCm platform
        pkgver = 7.2.4
-       pkgrel = 1
+       pkgrel = 2
        url = https://rocm.docs.amd.com/projects/rocBLAS/en/latest/index.html
        arch = x86_64
        license = MIT
        makedepends = cmake
+       makedepends = ninja
        makedepends = gcc-fortran
        makedepends = git
        makedepends = msgpack-cxx
@@ -33,7 +34,7 @@ pkgbase = rocblas
        optdepends = gtest: for rocblas-bench and rocblas-gemm-tune
        optdepends = rocm-smi-lib: for rocblas-bench and rocblas-gemm-tune
        options = !strip
-       source = 
rocm-libraries-7.2.4.tar.gz::https://github.com/ROCm/rocm-libraries/archive/refs/tags/rocm-7.2.4.tar.gz
-       sha256sums = 
50a4090b4ad18b34c375f666e5f71816cf55f89bc2175dc3eba9a7b80f65a15d
+       source = 
rocm-libraries::git+https://github.com/ROCm/rocm-libraries#tag=rocm-7.2.4
+       sha256sums = 
b476acbcd0f4017c800e4b05533e6dfb875bde32242729c8df557d4624379623
 
 pkgname = rocblas


=====================================
PKGBUILD
=====================================
@@ -5,7 +5,7 @@
 
 pkgname=rocblas
 pkgver=7.2.4
-pkgrel=1
+pkgrel=2
 pkgdesc='Next generation BLAS implementation for ROCm platform'
 arch=('x86_64')
 url='https://rocm.docs.amd.com/projects/rocBLAS/en/latest/index.html'
@@ -21,6 +21,7 @@ depends=(
 )
 makedepends=(
   'cmake'
+  'ninja'
   'gcc-fortran'
   'git'
   'msgpack-cxx'
@@ -43,23 +44,36 @@ optdepends=(
   'gtest: for rocblas-bench and rocblas-gemm-tune'
   'rocm-smi-lib: for rocblas-bench and rocblas-gemm-tune'
 )
-source=("rocm-libraries-$pkgver.tar.gz::https://github.com/ROCm/rocm-libraries/archive/refs/tags/rocm-$pkgver.tar.gz";)
-sha256sums=('50a4090b4ad18b34c375f666e5f71816cf55f89bc2175dc3eba9a7b80f65a15d')
+source=("rocm-libraries::git+https://github.com/ROCm/rocm-libraries#tag=rocm-$pkgver";)
+sha256sums=('b476acbcd0f4017c800e4b05533e6dfb875bde32242729c8df557d4624379623')
 options=(!strip)
-_dirname="rocm-libraries-rocm-$pkgver/projects/$pkgname"
-_tensile_dir="rocm-libraries-rocm-$pkgver/shared/tensile"
+_dirname="rocm-libraries/projects/$pkgname"
+_tensile_dir="rocm-libraries/shared/tensile"
+
+prepare() {
+  cd ${_dirname}
+  # Add support for gfx103X
+  git cherry-pick -n 43a79e3aee2319377f2e69fe943b52a0c29215e8
+
+  # Add support for gfx115X
+  git cherry-pick -n 7bc1152aeaeaf9b6c0c7d3450be3d8afc571503b
+}
 
 build() {
   # Compile source code for supported GPU archs in parallel
   export HIPCC_COMPILE_FLAGS_APPEND="-parallel-jobs=$(nproc)"
   export HIPCC_LINK_FLAGS_APPEND="-parallel-jobs=$(nproc)"
 
+  # Reduce massive spam in log files
+  CXXFLAGS+=" -Wno-unused"
+
   # -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
   local cmake_args=(
     -Wno-dev
     -S "$_dirname"
     -B build
+    -G Ninja
     -D CMAKE_BUILD_TYPE=RelWithDebInfo
     -D CMAKE_C_COMPILER=/opt/rocm/lib/llvm/bin/amdclang
     -D CMAKE_CXX_COMPILER=/opt/rocm/lib/llvm/bin/amdclang++
@@ -68,7 +82,6 @@ build() {
     -D CMAKE_INSTALL_PREFIX=/opt/rocm
     -D CMAKE_PREFIX_PATH=/opt/rocm/llvm/lib/cmake/llvm
     -D amd_comgr_DIR=/opt/rocm/lib/cmake/amd_comgr
-    -D BUILD_FILE_REORG_BACKWARD_COMPATIBILITY=OFF
     # Enable rocblas-bench and rocblas-gemm-tune
     -D BUILD_CLIENTS_BENCHMARKS=ON
     -D HIP_PLATFORM=amd
@@ -80,7 +93,7 @@ build() {
     -D BUILD_WITH_PIP=OFF
     # hipblaslt doesn't support all relevant targets
     -D BUILD_WITH_HIPBLASLT=OFF
-    # -D GPU_TARGETS=$(rocm-supported-gfx)
+    -D GPU_TARGETS=$(rocm-supported-gfx)
   )
   cmake "${cmake_args[@]}"
   cmake --build build



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/rocblas/-/commit/33e0cb17354450f90efa8f43388062decdef91fb

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/rocblas/-/commit/33e0cb17354450f90efa8f43388062decdef91fb
You're receiving this email because of your account on gitlab.archlinux.org. 
Manage all notifications: https://gitlab.archlinux.org/-/profile/notifications 
| Help: https://gitlab.archlinux.org/help


Reply via email to