From 5829b44648f809a09d006b044d8244254a3d224a Mon Sep 17 00:00:00 2001 From: Todd Gamblin Date: Wed, 9 Jul 2014 01:37:24 -0700 Subject: Fix Jeff Keasler's issues and add parmetis package. --- var/spack/packages/parmetis/package.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 var/spack/packages/parmetis/package.py (limited to 'var') diff --git a/var/spack/packages/parmetis/package.py b/var/spack/packages/parmetis/package.py new file mode 100644 index 0000000000..10a48503b2 --- /dev/null +++ b/var/spack/packages/parmetis/package.py @@ -0,0 +1,26 @@ +from spack import * + +class Parmetis(Package): + """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.""" + homepage = "http://glaros.dtc.umn.edu/gkhome/metis/parmetis/overview" + url = "http://glaros.dtc.umn.edu/gkhome/fetch/sw/parmetis/parmetis-4.0.3.tar.gz" + + versions = { '4.0.3' : 'f69c479586bf6bb7aff6a9bc0c739628', } + + depends_on('mpi') + + def install(self, spec, prefix): + cmake(".", + '-DGKLIB_PATH=%s/metis/GKlib' % pwd(), + '-DMETIS_PATH=%s/metis' % pwd(), + '-DSHARED=1', + '-DCMAKE_C_COMPILER=mpicc', + '-DCMAKE_CXX_COMPILER=mpicxx', + '-DSHARED=1', + *std_cmake_args) + + make() + make("install") -- cgit v1.2.3-70-g09d2