Commit 0968980d authored by PRUVOST Florent's avatar PRUVOST Florent

storm: enable nmad in the starpu package directly if mpi is nmad

parent 7d314b74
Pipeline #73398 failed with stages
in 17 minutes and 1 second
......@@ -143,6 +143,12 @@ kernels are executed as efficiently as possible.")
(base32 "1s212xgn5vdj6c79zwnq03c2dpipwwfaz7dhfz324jfs5cjyk89f"))))
(arguments
(substitute-keyword-arguments (package-arguments starpu-1.2)
((#:configure-flags flags '())
(match (assoc "mpi" (package-propagated-inputs this-package))
(("mpi" mpi)
(if (string=? (package-name mpi) "nmad")
`(cons "--enable-nmad" ,flags)
flags))))
((#:phases phases '())
(append phases '((add-after 'patch-source-shebangs 'fix-hardcoded-paths
(lambda _
......@@ -173,20 +179,6 @@ kernels are executed as efficiently as possible.")
`(("python" ,python-2)
,@(package-native-inputs starpu)))))
(define-public starpu+nmad
(package
(inherit starpu)
(name "starpu-nmad")
(arguments
(substitute-keyword-arguments (package-arguments starpu)
((#:configure-flags flags '())
`(cons "--enable-nmad" ,flags))))
(inputs
`(("nmad" ,nmad)
,@(package-inputs starpu)))
(propagated-inputs (alist-delete "mpi"
(package-propagated-inputs starpu)))))
(define-public starpu+simgrid
(package
(inherit starpu)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment