diff options
| author | Romain GARBAGE <romain.garbage@inria.fr> | 2026-02-05 11:24:21 +0100 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2026-03-16 10:16:40 +0100 |
| commit | fb34cb983a718d7690277a06ce3153a166c6a5a0 (patch) | |
| tree | 610e0bd3661a04be22ad075ead347fcbf52a3d3c | |
| parent | f380c63da454e4e21e88db1e65a18bfb65f8c919 (diff) | |
gnu: hwloc-2: Enable ROCm support.
* gnu/packages/mpi.scm (hwloc-2): Enable ROCm support.
Merges guix/guix!6032
Change-Id: I68d57c377bf461dd32a2c7b7793ed85158683199
Signed-off-by: Cayetano Santos <csantosb@inventati.org>
Modified-by: Cayetano Santos <csantosb@inventati.org>
| -rw-r--r-- | gnu/packages/mpi.scm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gnu/packages/mpi.scm b/gnu/packages/mpi.scm index 4aaf2d5ed76..7ad64281d56 100644 --- a/gnu/packages/mpi.scm +++ b/gnu/packages/mpi.scm @@ -67,9 +67,11 @@ #:use-module (gnu packages python) #:use-module (gnu packages python-build) #:use-module (gnu packages python-xyz) + #:use-module (gnu packages rocm-tools) #:use-module (gnu packages ssh) #:use-module (gnu packages valgrind) #:use-module (gnu packages version-control) + #:use-module (gnu packages xdisorg) #:use-module (srfi srfi-1) #:use-module (ice-9 match)) @@ -184,14 +186,22 @@ bind processes, and much more.") (append bash))) ;for completion tests (inputs (modify-inputs (package-inputs hwloc-1) (append level-zero) + ;; XXX: rocm-smi requires libdrm/drm.h but doesn't propagate a + ;; package providing these. For now, libdrm is used to provide + ;; this header. + (append libdrm) (append libxml2) (append opencl-icd-loader) + (append rocm-smi-lib) (delete "numactl"))) ;libnuma is no longer needed. (arguments (substitute-keyword-arguments (package-arguments hwloc-1) ((#:configure-flags flags '()) #~(cons* (string-append "--with-opencl=" #$(this-package-input "opencl-icd-loader")) + "--enable-rsmi" + (string-append "--with-rocm=" + #$(this-package-input "rocm-smi-lib")) #$flags)) ((#:phases phases) #~(modify-phases #$phases |
