summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorChristoph Junghans <christoph.junghans@gmail.com>2017-04-13 14:00:17 -0600
committerAdam J. Stewart <ajstewart426@gmail.com>2017-04-13 15:00:17 -0500
commitc08965701fcb084ec3bbc380772126ad7b6137ee (patch)
treee953d8e5de52224cfe7797bda07b3ef09a13cb33 /var
parent90f46186f902a551ee84845788b88d115aa0a39c (diff)
downloadspack-c08965701fcb084ec3bbc380772126ad7b6137ee.tar.gz
spack-c08965701fcb084ec3bbc380772126ad7b6137ee.tar.bz2
spack-c08965701fcb084ec3bbc380772126ad7b6137ee.tar.xz
spack-c08965701fcb084ec3bbc380772126ad7b6137ee.zip
New package: h5part (#3821)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/h5part/mpiio.patch26
-rw-r--r--var/spack/repos/builtin/packages/h5part/package.py46
2 files changed, 72 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/h5part/mpiio.patch b/var/spack/repos/builtin/packages/h5part/mpiio.patch
new file mode 100644
index 0000000000..152cfec349
--- /dev/null
+++ b/var/spack/repos/builtin/packages/h5part/mpiio.patch
@@ -0,0 +1,26 @@
+https://github.com/quinoacomputing/H5Part/commit/b8b106c368c3400b4df3d38e97ae2943d37d3c7d.patch
+
+From b8b106c368c3400b4df3d38e97ae2943d37d3c7d Mon Sep 17 00:00:00 2001
+From: Jozsef Bakosi <jbakosi@lanl.gov>
+Date: Thu, 28 Jul 2016 08:37:24 -0600
+Subject: [PATCH] Replace H5Pset_fapl_mpiposix with H5Pset_fapl_mpio
+
+Based on the advice at
+http://www.unidata.ucar.edu/mailing_lists/archives/netcdfgroup/2014/msg00188.html.
+---
+ src/H5Part.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/H5Part.c b/src/H5Part.c
+index 433a574..8a1b893 100644
+--- a/src/H5Part.c
++++ b/src/H5Part.c
+@@ -246,7 +246,7 @@ _H5Part_open_file (
+ /* select the HDF5 VFD */
+ if (flags & H5PART_VFD_MPIPOSIX) {
+ _H5Part_print_info ( "Selecting MPI-POSIX VFD" );
+- if (H5Pset_fapl_mpiposix ( f->access_prop, comm, 0 ) < 0) {
++ if (H5Pset_fapl_mpio ( f->access_prop, comm, 0 ) < 0) {
+ HANDLE_H5P_SET_FAPL_ERR;
+ goto error_cleanup;
+ }
diff --git a/var/spack/repos/builtin/packages/h5part/package.py b/var/spack/repos/builtin/packages/h5part/package.py
new file mode 100644
index 0000000000..3ff407accd
--- /dev/null
+++ b/var/spack/repos/builtin/packages/h5part/package.py
@@ -0,0 +1,46 @@
+##############################################################################
+# Copyright (c) 2017, Los Alamos National Security, LLC
+# Produced at the Los Alamos National Laboratory.
+#
+# This file is part of Spack.
+# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
+# LLNL-CODE-647188
+#
+# For details, see https://github.com/llnl/spack
+# Please also see the LICENSE file for our notice and the LGPL.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License (as
+# published by the Free Software Foundation) version 2.1, February 1999.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
+# conditions of the GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+##############################################################################
+
+from spack import *
+
+
+class H5part(AutotoolsPackage):
+ """Portable High Performance Parallel Data Interface to HDF5"""
+
+ homepage = "http://vis.lbl.gov/Research/H5Part/"
+ url = "https://codeforge.lbl.gov/frs/download.php/latestfile/18/H5Part-1.6.6.tar.gz"
+
+ version('1.6.6', '327c63d198e38a12565b74cffdf1f9d7')
+ patch('mpiio.patch')
+
+ depends_on('mpi')
+ depends_on('hdf5+mpi')
+
+ def configure_args(self):
+ args = ['--enable-parallel',
+ '--with-hdf5=%s' % self.spec['hdf5'].prefix,
+ 'CC=mpicc',
+ 'CXX=mpicxx']
+ return args