unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#47613] [PATCH] add parmetis
@ 2021-04-06  9:39 Franck Pérignon
  2021-04-06 17:43 ` Leo Famulari
  0 siblings, 1 reply; 4+ messages in thread
From: Franck Pérignon @ 2021-04-06  9:39 UTC (permalink / raw)
  To: 47613

[-- Attachment #1: Type: text/plain, Size: 144 bytes --]

Hello,

the attached file adds parmetis (http://glaros.dtc.umn.edu/gkhome/metis/parmetis/overview) in guix, saved in gnu/packages/math.scm


[-- Attachment #2: 0001-PATCH-Add-parmetis.patch --]
[-- Type: application/octet-stream, Size: 2918 bytes --]

From a5ab2390787b144c76e8a0838f60f841e37b37bd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Franck=20P=C3=A9rignon?=
 <Franck.Perignon@univ-grenoble-alpes.fr>
Date: Tue, 6 Apr 2021 09:07:23 +0000
Subject: [PATCH] [PATCH] Add parmetis

---
 gnu/packages/maths.scm | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 5cd11ec435..bdfa051db1 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -43,6 +43,7 @@
 ;;; Copyright © 2020 Simon Tournier <zimon.toutoune@gmail.com>
 ;;; Copyright © 2020 Martin Becze <mjbecze@riseup.net>
 ;;; Copyright © 2021 Gerd Heber <gerd.heber@gmail.com>
+;;; Copyright © 2021 Franck Pérignon <franck.perignon@univ-grenoble-alpes.fr>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -3326,6 +3327,44 @@ recursive-bisection, multilevel k-way, and multi-constraint partitioning
 schemes.")
     (license license:asl2.0)))          ;As of version 5.0.3
 
+(define-public parmetis
+  (package
+    (name "parmetis")
+    (version "4.0.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "http://glaros.dtc.umn.edu/gkhome/fetch/sw/parmetis/"
+                           "parmetis-" version ".tar.gz"))
+       (sha256
+        (base32
+         "0pvfpvb36djvqlcc3lq7si0c5xpb2cqndjg8wvzg35ygnwqs5ngj"))))
+    (build-system cmake-build-system)
+    (native-inputs `(("gcc" ,gcc)
+                     ("openmpi" ,openmpi)))
+    (arguments
+     `(#:tests? #f                      ;no tests
+       #:configure-flags `("-DSHARED=ON"
+                           ,"-DCMAKE_C_COMPILER=mpicc"
+                           ,"-DCMAKE_CXX_COMPILER=mpic++"
+                           ,"-DCMAKE_VERBOSE_MAKEFILE=1"
+                           ,(string-append "-DGKLIB_PATH=../parmetis-4.0.3/metis/GKlib")
+                           ,(string-append "-DMETIS_PATH=../parmetis-4.0.3/metis" ))))
+    (home-page "http://glaros.dtc.umn.edu/gkhome/metis/parmetis/overview")
+    (synopsis "Parallel Graph Partitioning and Fill-reducing Matrix Ordering")
+    (description
+     "ParMETIS is an MPI-based parallel library that implements a variety of algorithms
+      for partitioning unstructured graphs, meshes, and for computing fill-reducing
+      orderings of sparse matrices.  ParMETIS extends the functionality provided
+      by METIS and includes routines that are especially
+      suited for parallel AMR computations and large scale numerical simulations.
+      The algorithms implemented in ParMETIS are based on the parallel multilevel k-way
+      graph-partitioning, adaptive repartitioning, and parallel multi-constrained
+      partitioning schemes developed in our lab.")
+    (license license:asl2.0)))
+
+
+
 (define-public p4est
   (package
     (name "p4est")
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-04-08  7:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-06  9:39 [bug#47613] [PATCH] add parmetis Franck Pérignon
2021-04-06 17:43 ` Leo Famulari
2021-04-07 14:02   ` Franck Pérignon
2021-04-08  7:16     ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).