mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 21:59:08 -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)))
|
(license license:expat)))
|
||||||
|
|
||||||
(define-public gloo
|
(define-public gloo
|
||||||
(let ((version "0.0.0") ; no proper version tag
|
(let ((version "0.0.0") ; no proper version tag
|
||||||
(commit "c22a5cfba94edf8ea4f53a174d38aa0c629d070f")
|
(commit "c22a5cfba94edf8ea4f53a174d38aa0c629d070f")
|
||||||
(revision "1"))
|
(revision "1"))
|
||||||
(package
|
(package
|
||||||
|
@ -2930,15 +2930,22 @@ (define-public gloo
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list googletest))
|
(list googletest))
|
||||||
(inputs
|
(inputs
|
||||||
(list openssl))
|
(append (list openssl)
|
||||||
|
(if (supported-package? rdma-core)
|
||||||
|
(list rdma-core)
|
||||||
|
'())))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:configure-flags '("-DBUILD_SHARED_LIBS=ON" "-DBUILD_TEST=1")
|
(list #:configure-flags #~'("-DBUILD_SHARED_LIBS=ON"
|
||||||
#:phases
|
"-DBUILD_TEST=1"
|
||||||
(modify-phases %standard-phases
|
#$@(if (this-package-input "rdma-core")
|
||||||
(replace 'check
|
#~("-DUSE_IBVERBS=ON")
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
#~()))
|
||||||
(when tests?
|
#:phases
|
||||||
(invoke "make" "gloo_test")))))))
|
#~(modify-phases %standard-phases
|
||||||
|
(replace 'check
|
||||||
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
|
(invoke "make" "gloo_test")))))))
|
||||||
(synopsis "Collective communications library")
|
(synopsis "Collective communications library")
|
||||||
(description
|
(description
|
||||||
"Gloo is a collective communications library. It comes with a
|
"Gloo is a collective communications library. It comes with a
|
||||||
|
|
Loading…
Reference in a new issue