mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-30 16:10:44 +08:00
Updated ac, cmake based builds to require parallel functionality when parallel tests are requested.
This commit is contained in:
parent
43b9c6302c
commit
18c47417f7
@ -528,9 +528,9 @@ IF(ENABLE_NETCDF_4)
|
||||
SET(ENABLE_NETCDF4 ON CACHE BOOL "")
|
||||
ELSE()
|
||||
SET(USE_HDF4_FILE_TESTS OFF)
|
||||
SET(USE_HDF4 OFF)
|
||||
SET(USE_HDF4 OFF)
|
||||
SET(ENABLE_HDF4_FILE_TESTS OFF)
|
||||
SET(ENABLE_HDF4 OFF)
|
||||
SET(ENABLE_HDF4 OFF)
|
||||
ENDIF()
|
||||
|
||||
# Option to allow for strict null file padding.
|
||||
@ -1085,12 +1085,14 @@ IF(STATUS_RELAX_COORD_BOUND)
|
||||
ENDIF()
|
||||
|
||||
# Enable Parallel Tests.
|
||||
OPTION(ENABLE_PARALLEL_TESTS "Enable Parallel IO Tests. Ignored if netCDF4 is not enabled, or if there is no parallel I/O Support." ${USE_PARALLEL})
|
||||
OPTION(ENABLE_PARALLEL_TESTS "Enable Parallel IO Tests. Requires HDF5/NetCDF4 with parallel I/O Support." ${USE_PARALLEL})
|
||||
IF(ENABLE_PARALLEL_TESTS AND USE_PARALLEL)
|
||||
SET(TEST_PARALLEL ON CACHE BOOL "")
|
||||
IF(USE_NETCDF4)
|
||||
SET(TEST_PARALLEL4 ON CACHE BOOL "")
|
||||
ENDIF()
|
||||
ELSE()
|
||||
MESSAGE(FATAL_ERROR "Parallel tests requested, but no parallel HDF5 installation detected.")
|
||||
ENDIF()
|
||||
|
||||
# Enable special filter test; experimental when using cmake.
|
||||
|
14
configure.ac
14
configure.ac
@ -243,9 +243,8 @@ AC_MSG_RESULT($enable_extra_example_tests)
|
||||
AC_MSG_CHECKING([whether parallel IO tests should be run])
|
||||
AC_ARG_ENABLE([parallel-tests],
|
||||
[AS_HELP_STRING([--enable-parallel-tests],
|
||||
[Run extra parallel IO tests. Ignored if \
|
||||
netCDF-4 is not enabled, or built on a system \
|
||||
without parallel I/O support.])])
|
||||
[Run extra parallel IO tests. Requires netCDF-4
|
||||
with parallel I/O support.])])
|
||||
test "x$enable_parallel_tests" = xyes || enable_parallel_tests=no
|
||||
AC_MSG_RESULT($enable_parallel_tests)
|
||||
|
||||
@ -955,9 +954,18 @@ if test "x$enable_netcdf_4" = xyes; then
|
||||
if test "x$ac_cv_func_H5Pget_fapl_mpio" = xyes -o "x$ac_cv_func_H5Pget_fapl_mpiposix" = xyes; then
|
||||
hdf5_parallel=yes
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING([whether parallel io is enabled in hdf5])
|
||||
AC_MSG_RESULT([$hdf5_parallel])
|
||||
|
||||
if test "x$hdf5_parallel" = "xno"; then
|
||||
if test "x$enable_parallel_tests" = "xyes"; then
|
||||
AC_MSG_ERROR([Parallel tests requested, but no parallel HDF5 installation detected.])
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
|
||||
# The user may have built HDF5 with the SZLIB library.
|
||||
enable_szlib=no
|
||||
if test "x$ac_cv_func_H5Z_SZIP" = xyes; then
|
||||
|
Loading…
Reference in New Issue
Block a user