You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am experiencing an issue with MPI detection after the recent changes to CMakeLists.txt. The build works fine in build_0, but build_1 fails to find mpi.h when I try to configure with CMake.
Steps to Reproduce
Clone the repository.
Build in the build_0 directory using an older version of CMakeLists.txt (this works).
Build in the build_1 directory using the newer version of CMakeLists.txt.
Observed Behavior
The line CMAKE_CXX_COMPILER in CMakeCache.txt for build_1 is set to /usr/bin/c++ instead of the expected /usr/bin/mpicxx.
MPI_C_COMPILER and MPI_CXX_COMPILER remain UNINITIALIZED.
Differences in CMakeLists.txt
Here are the key differences between the two versions of CMakeLists.txt:
[List any specific lines or sections that changed and may impact MPI detection]
Environment
CMake version: 3.18.4
OS: Ubuntu 21.10
MPI version: 4.1.0
Additional Information
I have verified that both mpicc and mpicxx are available in /usr/bin/.
I have tried various configurations without success.
Any insights or guidance would be appreciated!
The text was updated successfully, but these errors were encountered:
Thanks @tjhei. I tested building inside the dealii 9.5 docker today and it produces no error. So I am looking at the differences between these environments. I have an idea the environment setup might be the triggering instead of the compiler versions. Anyway, I'll let you know how that goes.
Description
I am experiencing an issue with MPI detection after the recent changes to
CMakeLists.txt
. The build works fine inbuild_0
, butbuild_1
fails to findmpi.h
when I try to configure with CMake.Steps to Reproduce
build_0
directory using an older version ofCMakeLists.txt
(this works).build_1
directory using the newer version ofCMakeLists.txt
.Observed Behavior
CMAKE_CXX_COMPILER
inCMakeCache.txt
forbuild_1
is set to/usr/bin/c++
instead of the expected/usr/bin/mpicxx
.MPI_C_COMPILER
andMPI_CXX_COMPILER
remainUNINITIALIZED
.Differences in CMakeLists.txt
Here are the key differences between the two versions of
CMakeLists.txt
:Environment
Additional Information
mpicc
andmpicxx
are available in/usr/bin/
.Any insights or guidance would be appreciated!
The text was updated successfully, but these errors were encountered: