From c08965701fcb084ec3bbc380772126ad7b6137ee Mon Sep 17 00:00:00 2001 From: Christoph Junghans Date: Thu, 13 Apr 2017 14:00:17 -0600 Subject: New package: h5part (#3821) --- .../repos/builtin/packages/h5part/mpiio.patch | 26 ++++++++++++ var/spack/repos/builtin/packages/h5part/package.py | 46 ++++++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 var/spack/repos/builtin/packages/h5part/mpiio.patch create mode 100644 var/spack/repos/builtin/packages/h5part/package.py (limited to 'var') 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 +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 -- cgit v1.2.3-70-g09d2