[mod3 (modulerc)]$ module purge
[mod3 (modulerc)]$ module load pgi/19.4
[mod3 (modulerc)]$ module load openmpi/4.0
[mod3 (modulerc)]$ module list
Currently Loaded Modulefiles:
  1) pgi/19.4(default)      2) openmpi/4.0/pgi/19.4
[mod3 (modulerc)]$ mpirun
mpirun (openmpi/4.0, pgi/19.4)
[mod3 (modulerc)]$ module unload openmpi
[mod3 (modulerc)]$ module switch pgi intel/2019
[mod3 (modulerc)]$ module load openmpi/4.0
[mod3 (modulerc)]$ module list
Currently Loaded Modulefiles:
  1) intel/2019(default)      2) openmpi/4.0/intel/2019
[mod3 (modulerc)]$ mpirun
mpirun (openmpi/4.0, intel/2019)
[mod3 (modulerc)]$ module unload openmpi
[mod3 (modulerc)]$ module switch intel gcc/9.1.0
[mod3 (modulerc)]$ module load openmpi/4.0
[mod3 (modulerc)]$ mpirun
mpirun (openmpi/4.0, gcc/9.1.0)
[mod3 (modulerc)]$ module unload openmpi
[mod3 (modulerc)]$ module switch gcc gcc/8.2.0
[mod3 (modulerc)]$ module load openmpi/4.0

**** ERROR *****:
Compiler Mismatch
Package openmpi/4.0 does not appear to be built for currently
loaded compiler gcc/8.2.0.


[mod3 (modulerc)]$ module list
Currently Loaded Modulefiles:
  1) gcc/8.2.0
