mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-02-23 16:59:54 +08:00
added NETCDF_MPIEXEC option to CMake
This commit is contained in:
parent
f510cfe592
commit
3ce86f7ef8
@ -927,7 +927,10 @@ include(cmake/dependencies.cmake)
|
||||
# Enable Parallel IO with netCDF-4/HDF5 files using HDF5 parallel I/O.
|
||||
set(STATUS_PARALLEL "OFF")
|
||||
set(IMPORT_MPI "")
|
||||
message(STATUS "MPIEXEC ${MPIEXEC}")
|
||||
option(NETCDF_ENABLE_PARALLEL4 "Build netCDF-4 with parallel IO" "${HDF5_PARALLEL}")
|
||||
option(NETCDF_MPIEXEC "Command to use to launch parallel I/O tests" OFF)
|
||||
message(STATUS "NETCDF_MPIEXEC ${NETCDF_MPIEXEC}")
|
||||
if(NETCDF_ENABLE_PARALLEL4 AND NETCDF_ENABLE_HDF5)
|
||||
if(NOT HDF5_PARALLEL)
|
||||
set(USE_PARALLEL OFF CACHE BOOL "")
|
||||
@ -937,6 +940,10 @@ if(NETCDF_ENABLE_PARALLEL4 AND NETCDF_ENABLE_HDF5)
|
||||
set(USE_PARALLEL ON CACHE BOOL "")
|
||||
set(USE_PARALLEL4 ON CACHE BOOL "")
|
||||
set(STATUS_PARALLEL "ON")
|
||||
if(NETCDF_MPIEXEC)
|
||||
set(MPIEXEC "${NETCDF_MPIEXEC}")
|
||||
endif()
|
||||
message(STATUS "MPIEXEC is now ${MPIEXEC}")
|
||||
configure_file("${netCDF_SOURCE_DIR}/nc_test4/run_par_test.sh.in"
|
||||
"${netCDF_BINARY_DIR}/tmp/run_par_test.sh" @ONLY NEWLINE_STYLE LF)
|
||||
file(COPY "${netCDF_BINARY_DIR}/tmp/run_par_test.sh"
|
||||
|
Loading…
Reference in New Issue
Block a user