mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
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.
This commit is contained in:
parent
69ed95efaa
commit
5a427d44ef
1 changed files with 16 additions and 9 deletions
|
@ -2910,7 +2910,7 @@ (define-public python-keras
|
|||
(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 @@ (define-public gloo
|
|||
(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
|
||||
|
|
Loading…
Reference in a new issue