• Christian Pfeiffer's avatar
    FindMPI: Use physical cores for MPIEXEC_MAX_NUMPROCS · 1610f757
    Christian Pfeiffer authored
    Since commit v3.9.0-rc1~224^2~1 (FindMPI: MPIEXEC handling improvements,
    2017-04-21) the `ProcessorCount` module is being used to initialize
    `MPIEXEC_MAX_NUMPROCS`.  However, this leads to the logical cores being
    counted rather than the physical ones, and some MPI implementations like
    OpenMPI will error if mpiexec is called with that number.  Switch it to
    the number of physical cores using `cmake_host_system_information`.
    
    This ensures that if `MPIEXEC_MAX_NUMPROCS` is being used to set up MPI
    tests with CTest or similar that the tests won't spuriously fail due to
    OpenMPI refusing to start the application.
    1610f757
Name
Last commit
Last update
.github Loading commit data...
Auxiliary Loading commit data...
Help Loading commit data...
Licenses Loading commit data...
Modules Loading commit data...
Packaging Loading commit data...
Source Loading commit data...
Templates Loading commit data...
Tests Loading commit data...
Utilities Loading commit data...
.clang-format Loading commit data...
.clang-tidy Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.hooks-config Loading commit data...
CMakeCPack.cmake Loading commit data...
CMakeCPackOptions.cmake.in Loading commit data...
CMakeGraphVizOptions.cmake Loading commit data...
CMakeLists.txt Loading commit data...
CMakeLogo.gif Loading commit data...
CONTRIBUTING.rst Loading commit data...
CTestConfig.cmake Loading commit data...
CTestCustom.cmake.in Loading commit data...
CompileFlags.cmake Loading commit data...
Copyright.txt Loading commit data...
DartConfig.cmake Loading commit data...
README.rst Loading commit data...
bootstrap Loading commit data...
cmake_uninstall.cmake.in Loading commit data...
configure Loading commit data...
doxygen.config Loading commit data...