dbcsr icon indicating copy to clipboard operation
dbcsr copied to clipboard

cmake: add -fallow-argument-mismatch if MPICH is detected with GCC 10+

Open dev-zero opened this issue 3 years ago • 0 comments

until https://github.com/pmodels/mpich/issues/4300 is solved we need to add -fallow-argument-mismatch when building our MPI wrapper. The most portable and clean solution would be to try_compile a snippet triggering the issue when gcc 10+ is used and if it is triggered, add the flag. The other option would be to unconditionally add the flag when MPICH and gcc 10+ are used. The latter has the disadvantage that we manually have to update the check once MPICH resolves the issue

dev-zero avatar Jan 05 '21 16:01 dev-zero