Just took me 10 min to figure out that mpicc from openmpi is not localted in /usr/bin/mpicc but in /usr/lib64/openmpi/bin/mpicc (which is not in the default path!).
This way I couldnt execute mpicc. Is this just an oversight, or is there a reason behind this inconvenience that I needed to manually add /usr/lib64/openmpi/bin to my path?
There are two mpi implementations. You can choose which one to use at runtime using environment modules (Fedora provides the legacy tcl version and also the lua version):
% ml avail
------------------------------------------------------------------------------ /usr/share/modulefiles -------------------------------------------------------------------------------
mpi/mpich-x86_64 mpi/openmpi-x86_64
----------------------------------------------------------------------- /usr/share/lmod/lmod/modulefiles/Core -----------------------------------------------------------------------
lmod settarg
Where:
D: Default Module
If the avail list is too long consider trying:
"module --default avail" or "ml -d av" to just list the default modules.
"module overview" or "ml ov" to display the number of modules for each name.
Use "module spider" to find all possible modules and extensions.
Use "module keyword key1 key2 ..." to search for all possible modules matching any of the "keys".
Many big science codes use both because they combine subsystems from different labs. These codes are constantly being improved, so users often modify and rebuild components using the appropriate library.