Skip to content
Snippets Groups Projects
Commit 6acb4adb authored by Eric Bavier's avatar Eric Bavier
Browse files

gnu: Add pt-scotch package.

* gnu/packages/maths.scm (pt-scotch): New variable.
parent f8ed036a
No related branches found
No related tags found
No related merge requests found
...@@ -666,3 +666,33 @@ (define-public scotch ...@@ -666,3 +666,33 @@ (define-public scotch
bio-chemistry.") bio-chemistry.")
;; See LICENSE_en.txt ;; See LICENSE_en.txt
(license license:cecill-c))) (license license:cecill-c)))
(define-public pt-scotch
(package (inherit scotch)
(name "pt-scotch")
(propagated-inputs
`(("openmpi" ,openmpi))) ;Headers include MPI headers
(arguments
(substitute-keyword-arguments (package-arguments scotch)
((#:phases scotch-phases)
`(alist-replace
'build
;; TODO: Would like to add parallelism here
(lambda _
(and
(zero? (system* "make" "ptscotch"))
;; Install the serial metis compatibility library
(zero? (system* "make" "-C" "libscotchmetis" "install"))))
(alist-replace
'check
(lambda _ (zero? (system* "make" "ptcheck")))
(alist-replace
'install
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(mkdir out)
(zero? (system* "make"
(string-append "prefix=" out)
"install"))))
,scotch-phases))))))
(synopsis "Programs and libraries for graph algorithms (with MPI)")))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment