1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-07-03 23:54:04 +02:00

gnu: rocm-smi-lib: Move Python modules to separate 'bin' output.

* gnu/packages/rocm.scm (rocm-smi-lib): Move Python modules to separate 'bin'
output.
[phases]: Replace 'chdir' phase with 'setup' phase.
[configure-flags]: Adjust CMAKE variables to split package output.

* gnu/packages/rocm-libs.scm (hipblaslt): [inputs]: Add both outputs of
`rocm-smi-lib'.

Fixes: #7285
Change-Id: Id5ce15454cf239dd7c6836b172224ae309df81d4
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Merges: #8185
This commit is contained in:
Sergio Pastor Pérez
2026-04-27 15:14:08 +02:00
committed by Ludovic Courtès
parent c69d577a6f
commit 2c9f5ce1ee
2 changed files with 18 additions and 2 deletions
+1
View File
@@ -430,6 +430,7 @@ troubleshooting issues impacting AMD GPUS in HPC environments.")
msgpack-cxx
rocm-hip-runtime
rocm-smi-lib
`(,rocm-smi-lib "bin")
rocm-toolchain
roctracer))
(native-inputs
+17 -2
View File
@@ -809,14 +809,29 @@ scatter operations.")
(list
#:tests? #f ; requires GPU
#:build-type "Release"
#:configure-flags
#~(list (string-append "-DCMAKE_INSTALL_LIBEXECDIR="
#$output:bin "/lib")
(string-append "-DCMAKE_INSTALL_BINDIR="
#$output:bin "/bin"))
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'chdir
(add-after 'unpack 'setup
(lambda _
(chdir "projects/rocm-smi-lib"))))))
(chdir "projects/rocm-smi-lib")
;; Remove relative prefix so 'CMAKE_INSTALL_LIBEXECDIR' can be
;; an absolute path, that allows pointing it to a different
;; output in the store, such as `#$output:bin'.
(substitute* "rocm_smi/CMakeLists.txt"
(("../(\\$\\{CMAKE_INSTALL_LIBEXECDIR\\}/\\$\\{ROCM_SMI\\}/rocm_smi.py)" _ suffix)
suffix)))))))
(native-inputs (list pkg-config))
(inputs (list libdrm python))
(propagated-inputs (list grep coreutils))
;; The 'bin' output will store Python utilities in order to reduce the
;; closure size size of the package. That way the 'out' output will not
;; depend on Python.
(outputs '("out" "bin"))
(home-page %rocm-systems-url)
(synopsis "The ROCm System Management Interface (ROCm SMI) Library")
(description "The ROCm System Management Interface Library, or