[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/07: gnu: gloo: Add dependency on rdma-core.
From: |
guix-commits |
Subject: |
03/07: gnu: gloo: Add dependency on rdma-core. |
Date: |
Thu, 12 Jan 2023 17:34:02 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 5a427d44efdeaf2cb2360dc7cb4507c108896849
Author: Ludovic Courtès <ludovic.courtes@inria.fr>
AuthorDate: Thu Jan 12 16:29:30 2023 +0100
gnu: gloo: Add dependency on rdma-core.
* gnu/packages/machine-learning.scm (gloo)[inputs]: Add RDMA-CORE when
supported.
[arguments]: Pass '-DUSE_IBVERBS=ON' when RDMA-CORE is present. Switch
to gexps.
---
gnu/packages/machine-learning.scm | 25 ++++++++++++++++---------
1 file changed, 16 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/machine-learning.scm
b/gnu/packages/machine-learning.scm
index a74694da06..bcee6a6fc3 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -2910,7 +2910,7 @@ that:
(license license:expat)))
(define-public gloo
- (let ((version "0.0.0") ; no proper version tag
+ (let ((version "0.0.0") ; no proper version tag
(commit "c22a5cfba94edf8ea4f53a174d38aa0c629d070f")
(revision "1"))
(package
@@ -2930,15 +2930,22 @@ that:
(native-inputs
(list googletest))
(inputs
- (list openssl))
+ (append (list openssl)
+ (if (supported-package? rdma-core)
+ (list rdma-core)
+ '())))
(arguments
- `(#:configure-flags '("-DBUILD_SHARED_LIBS=ON" "-DBUILD_TEST=1")
- #:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "make" "gloo_test")))))))
+ (list #:configure-flags #~'("-DBUILD_SHARED_LIBS=ON"
+ "-DBUILD_TEST=1"
+ #$@(if (this-package-input "rdma-core")
+ #~("-DUSE_IBVERBS=ON")
+ #~()))
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "make" "gloo_test")))))))
(synopsis "Collective communications library")
(description
"Gloo is a collective communications library. It comes with a
- branch master updated (483bc044eb -> 505d7ce025), guix-commits, 2023/01/12
- 02/07: gnu: gloo: Build the shared library only., guix-commits, 2023/01/12
- 01/07: gnu: gromacs: Mark as tunable., guix-commits, 2023/01/12
- 05/07: gnu: guile-aa-tree: Update Guile version to 3.0 ., guix-commits, 2023/01/12
- 07/07: gnu: Add dislocker., guix-commits, 2023/01/12
- 03/07: gnu: gloo: Add dependency on rdma-core.,
guix-commits <=
- 04/07: gnu: guile-aa-tree: Restrict install to aa-tree.scm., guix-commits, 2023/01/12
- 06/07: gnu: Add hydra., guix-commits, 2023/01/12