New package: h5part (#3821)

This commit is contained in:
Christoph Junghans 2017-04-13 14:00:17 -06:00 committed by Adam J. Stewart
parent 90f46186f9
commit c08965701f
2 changed files with 72 additions and 0 deletions

View File

@ -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;
}

View File

@ -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