[mod4 (modulerc)]$ module purge [mod4 (modulerc)]$ module load pgi/18.4 [mod4 (modulerc)]$ module load openmpi/3.1 [mod4 (modulerc)]$ module load foo/1.1 [mod4 (modulerc)]$ module list Currently Loaded Modulefiles: 1) pgi/18.4 3) foo/1.1/pgi/18.4/openmpi/3.1(default) 2) openmpi/3.1/pgi/18.4(default) [mod4 (modulerc)]$ foo foo 1.1 (pgi/18.4, openmpi/3.1) [mod4 (modulerc)]$ module switch --auto pgi intel/2018 **** ERROR *****: Compiler Mismatch Package openmpi/3.1/pgi/18.4 does not appear to be built for currently loaded compiler intel/2018. Loading openmpi/3.1/pgi/18.4 ERROR: Module evaluation aborted **** ERROR *****: Compiler Mismatch Package foo/1.1/pgi/18.4/openmpi/3.1 does not appear to be built for currently loaded compiler intel/2018. Loading foo/1.1/pgi/18.4/openmpi/3.1 ERROR: Module evaluation aborted Switching from pgi/18.4 to intel/2018 WARNING: Reload of dependent openmpi/3.1/pgi/18.4 failed WARNING: Reload of dependent foo/1.1/pgi/18.4/openmpi/3.1 failed Unloading dependent: foo/1.1/pgi/18.4/openmpi/3.1 openmpi/3.1/pgi/18.4 [mod4 (modulerc)]$ module list Currently Loaded Modulefiles: 1) intel/2018 [mod4 (modulerc)]$ foo foo: command not found [mod4 (modulerc)]$ mpirun mpirun: command not found [mod4 (modulerc)]$ module purge [mod4 (modulerc)]$ module load intel/2019 [mod4 (modulerc)]$ module load foo Loading foo/intel/2019/intelmpi/2.4 ERROR: foo/intel/2019/intelmpi/2.4 cannot be loaded due to missing prereq. HINT: the following module must be loaded first: intelmpi [mod4 (modulerc)]$ module list Currently Loaded Modulefiles: 1) intel/2019 [mod4 (modulerc)]$ foo foo: command not found [mod4 (modulerc)]$ module load openmpi [mod4 (modulerc)]$ module list Currently Loaded Modulefiles: 1) intel/2019 2) openmpi/intel/2019/4.0 [mod4 (modulerc)]$ foo foo: command not found