gnu: Add pt-scotch32.
authorPaul Garlick <pgarlick@tourbillion-technology.com>
Thu, 24 Aug 2017 14:56:45 +0000 (15:56 +0100)
committerLudovic Courtès <ludo@gnu.org>
Thu, 31 Aug 2017 10:34:50 +0000 (12:34 +0200)
* gnu/packages/maths.scm (pt-scotch32): New variable.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
gnu/packages/maths.scm

index 79cceec..7481636 100644 (file)
@@ -2018,6 +2018,29 @@ YACC = bison -pscotchyy -y -b y
             (lambda _ (zero? (system* "make" "ptcheck"))))))))
     (synopsis "Programs and libraries for graph algorithms (with MPI)")))
 
+(define-public pt-scotch32
+  (package (inherit scotch32)
+    (name "pt-scotch32")
+    (propagated-inputs
+     `(("openmpi" ,openmpi)))                     ;headers include MPI headers
+    (arguments
+     (substitute-keyword-arguments (package-arguments scotch)
+       ((#:phases scotch-phases)
+        `(modify-phases ,scotch-phases
+           (replace 'build
+             (lambda _
+               (and
+                (zero? (system* "make"
+                                (format #f "-j~a" (parallel-job-count))
+                                "ptscotch" "ptesmumps"))
+                ;; Install the serial metis compatibility library
+                (zero? (system* "make" "-C" "libscotchmetis" "install")))))
+           (replace 'check
+             (lambda _
+               (zero? (system* "make" "ptcheck"))))))))
+    (synopsis
+     "Programs and libraries for graph algorithms (with MPI and 32-bit integers)")))
+
 (define-public metis
   (package
     (name "metis")