-
-
Notifications
You must be signed in to change notification settings - Fork 57
Closed
Labels
Description
I think it might be wise to update the install.sh scripts to pass FC=gfortran, CC=gcc rather than mpif90 and mpicc etc. The most complicated part about this is that I need to do some testing and investigation of how to handle the logic surrounding MPI. I think that if install.sh either:
- Installs mpich as part of the build, or
- Receives a user flag setting the MPI location
Then it should automagically "just do the right thing" ™️ IF we also set MPI_HOME environment variable. If the script doesn't do the install of MPICH, and the user (or script elsewhere) doesn't explicitly specify an MPI to use then CMakes FindMPI should pick it up from either:
- The users path via it's searching for compiler wrappers and
mpirunetc. - environment modules (gnu modules) setting the MPI_HOME variable explicitly
- other crazy and complicated magic from FindMPI. When CMake fails on this step it also outputs info so that the user can specify via the command line or
ccmakeorcmake-guiinterfaces the explicit location of where to find MPI.
I think it should be fairly straightforward to implement this, but I need to dig into the install script to assert this with any confidence first....