guix_mirror_bot pushed a commit to branch master
in repository guix.

commit b03cb4de7f8031e57866460f2dd1a217be188b01
Author: Cayetano Santos <[email protected]>
AuthorDate: Thu Feb 12 08:24:25 2026 +0100

    gnu: Add rocm-smi-lib.
    
    * gnu/packages/rocm.scm (rocm-smi-lib): New variable.
    
    Merges guix/guix!6339
    
    Change-Id: I1f54236a145278151087042f71c1c7edec7ebf1f
---
 gnu/packages/rocm.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/rocm.scm b/gnu/packages/rocm.scm
index f74f7d850b..2ec0b84b4a 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)))

Reply via email to