Closed Steven-Roberts closed 7 months ago
Can you try other versions of OpenMPI, such as 4.1.2? Seems like it could be an OpenMPI problem. I am using OpenMPI 5.x with gcc 8.5 and have not had an issue.
I tried OpenMPI 4.1.2 and GCC 13.2 (via spack instead of system packages) and still get the same issue. Interestingly when building on quartz with OpenMPI 4.1.2 it compiles fine. I'm not sure what to make of that.
The CXX_serial/ark_analytic_sys
example is compiled with g++ (and not mpicxx), which I think is fine, but somehow when linking, the MPI functions are needed...
What CMake version are you using? As of SUNDIALS 7, when you build SUNDIALS with MPI enabled all of SUNDIALS requires MPI because of the new SUNComm
(so that is why the MPI symbols are required). However, CMake should be adding the MPI::MPI_CXX
target in and thus the MPI libraries should be getting linked to (even though youre compiling with g++
). In older CMake versions it did a bad job of propagating things related to MPI correctly.
What CMake version are you using?
3.26.5
The build command
cmake -DENABLE_MPI=ON -DEXAMPLES_ENABLE_CXX=ON ..
causes the following build error for meI'm using gcc 8.5 and Open MPI 4.1.1. With mpich 4.1.1 it compiles without error.