summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCayetano Santos <csantosb@inventati.org>2026-02-12 08:24:25 +0100
committerCayetano Santos <csantosb@inventati.org>2026-02-18 10:52:47 +0100
commitb03cb4de7f8031e57866460f2dd1a217be188b01 (patch)
tree5f4db469364027628d3ef34c2cb70bba366c81f8
parentfd901ada99f740e25e9dbbe467446e3b25da8435 (diff)
gnu: Add rocm-smi-lib.
* gnu/packages/rocm.scm (rocm-smi-lib): New variable. Merges guix/guix!6339 Change-Id: I1f54236a145278151087042f71c1c7edec7ebf1f
-rw-r--r--gnu/packages/rocm.scm27
1 files changed, 27 insertions, 0 deletions
diff --git a/gnu/packages/rocm.scm b/gnu/packages/rocm.scm
index f74f7d850b1..2ec0b84b4a9 100644
--- a/gnu/packages/rocm.scm
+++ b/gnu/packages/rocm.scm
@@ -27,6 +27,7 @@
#:use-module (guix git-download)
#:use-module (guix build-system cmake)
#:use-module (gnu packages)
+ #:use-module (gnu packages base)
#:use-module (gnu packages boost)
#:use-module (gnu packages check)
#:use-module (gnu packages cpp)
@@ -727,3 +728,29 @@ moves.")
library for collective communication on GPUs, such as reduce, gather or
scatter operations.")
(license license:bsd-3)))
+
+(define-public rocm-smi-lib
+ (package
+ (name "rocm-smi-lib")
+ (version %rocm-version)
+ (source %rocm-systems-origin)
+ (build-system cmake-build-system)
+ (arguments
+ (list
+ #:tests? #f ; requires GPU
+ #:build-type "Release"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'chdir
+ (lambda _
+ (chdir "projects/rocm-smi-lib"))))))
+ (native-inputs (list pkg-config))
+ (inputs (list libdrm python))
+ (propagated-inputs (list grep coreutils))
+ (home-page %rocm-systems-url)
+ (synopsis "The ROCm System Management Interface (ROCm SMI) Library")
+ (description "The ROCm System Management Interface Library, or
+ROCm SMI library, is part of the Radeon Open Compute ROCm software
+stack. It is a C library for Linux that provides a user space
+interface for applications to monitor and control GPU applications.")
+ (license license:expat)))