Skip to content

FindMPI: Focus Cray Query to MPICH

Axel Huebl requested to merge ax3l/cmake:findmpi-more-focused-cray-query into master

On HPE/Cray, as a last resort to find MPI with non-Cray compilers, we query the CC compiler wrappers. Originally, we just asked for all flags. This can be problematic if additional products are loaded, e.g., on the latest cray-hdf5-parallel on Perlmutter this confuses the logic in FindHDF5.

We now exclude adding flags from other Cray modules/products during FindMPI, such as libSci, HDF5, etc.

Testing

  • Crusher (OLCF) with clang++ as CXX compiler: now misses AMD libs (linker)
  • Perlmutter (NERSC) in PrgEnv-gnu with g++ as CXX and CUDAHOSTCXX compiler

Review

CC-ing @ward-hpe

Cross-Ref

Follow-up to !6264 (merged) (CMake 3.22+).

First seen & discussed in #22368 (comment 1181441) / https://github.com/ECP-WarpX/WarpX/pull/3079


Issue: #22368 (closed)
Backport: release

Edited by Axel Huebl

Merge request reports