* add rocm-smi-lib

This commit is contained in:
Alexander Baldeck 2025-02-22 13:51:47 +01:00
parent e92a1583de
commit 30885bca91
4 changed files with 61 additions and 0 deletions

View File

@ -0,0 +1,18 @@
pkgbase = rocm-smi-lib
pkgdesc = ROCm System Management Interface Library
pkgver = 6.3.2
pkgrel = 1
url = https://rocm.docs.amd.com/projects/rocm_smi_lib/en/latest
arch = x86_64
license = NCSA
makedepends = cmake
depends = rocm-core
depends = glibc
depends = gcc-libs
depends = hsa-rocr
depends = python
options = !lto
source = rocm-smi-lib-6.3.2.tar.gz::https://github.com/ROCm/rocm_smi_lib/archive/rocm-6.3.2.tar.gz
sha256sums = 29a9190143dfcbafeac93d8064b00c9320dbca57a3344adb009ec17d9b09d036
pkgname = rocm-smi-lib

View File

@ -0,0 +1,5 @@
[rocm-smi-lib]
source = 'github'
github = 'ROCm/rocm_smi_lib'
use_latest_release = true
prefix = 'rocm-'

View File

@ -0,0 +1,35 @@
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Torsten Keßler <tpkessler at archlinux dot org>
# Contributor: acxz <akashpatel2008 at yahoo dot com>
pkgname=rocm-smi-lib
pkgver=6.3.2
pkgrel=1
pkgdesc='ROCm System Management Interface Library'
arch=(x86_64 powerpc64le powerpc64 riscv64)
url='https://rocm.docs.amd.com/projects/rocm_smi_lib/en/latest'
license=('NCSA')
depends=('rocm-core' 'glibc' 'gcc-libs' 'hsa-rocr' 'python')
makedepends=('cmake')
_git='https://github.com/ROCm/rocm_smi_lib'
source=("$pkgname-$pkgver.tar.gz::$_git/archive/rocm-$pkgver.tar.gz")
sha256sums=('29a9190143dfcbafeac93d8064b00c9320dbca57a3344adb009ec17d9b09d036')
options=(!lto)
_dirname="$(basename "$_git")-$(basename "${source[0]}" .tar.gz)"
build() {
local cmake_args=(
-Wno-dev
-S "$_dirname"
-B build
-D CMAKE_INSTALL_PREFIX=/opt/rocm
-D CMAKE_BUILD_TYPE=None
)
cmake "${cmake_args[@]}"
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
install -Dm644 "$srcdir/$_dirname/License.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

3
rocm/rocm-smi-lib/test.sh Executable file
View File

@ -0,0 +1,3 @@
#! /usr/bin/env sh
/opt/rocm/bin/rocm-smi -a