Commit 8993d1fc authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Add test for type of HDF5, serial or parallel.

Defines the macro HAVE_PARALLEL_HDF5 and the automake conditional
HAVEPARALLELHDF5 if HDF5 is parallel.

Former-commit-id: 2ad24c19fade194da91336e59347b96cc69d76ed
parent 77a876a1
......@@ -212,9 +212,23 @@ AC_CHECK_LIB([z],[gzopen],[
# Check for HDF5.
# Check for HDF5. Need to differentiate between parallel and serial.
# Need to ask the HDF5 compiler about its configuration, -showconfig should
# have yes/no
if test "$with_hdf5" = "yes"; then
AC_MSG_CHECKING([for HDF5 parallel support])
parallel=`$H5CC -showconfig | grep "Parallel HDF5:" | awk '{print $3}'`
if test "$parallel" = "yes"; then
AC_DEFINE([HAVE_PARALLEL_HDF5],1,[HDF5 library supports parallel access])
AM_CONDITIONAL([HAVEPARALLELHDF5],[test "$have_parallel_hdf5" = "yes"])
# Check for setaffinity.
AC_CHECK_FUNC( pthread_setaffinity_np , AC_DEFINE([HAVE_SETAFFINITY],[true],
[Defined if pthread_setaffinity_np exists.]) )
......@@ -256,6 +270,7 @@ AC_MSG_RESULT([
flags: $CFLAGS
MPI enabled: $enable_mpi
HDF5 enabled: $with_hdf5
parallel: $have_parallel_hdf5
OpenMP enabled: $enable_openmp
Metis enabled: $with_metis
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment