[mod3 (homebrewed)]$ module purge
[mod3 (homebrewed)]$ module load gcc/9.1.0
[mod3 (homebrewed)]$ module load simd/avx2
[mod3 (homebrewed)]$ module load bar/5.4
[mod3 (homebrewed)]$ module list
Currently Loaded Modulefiles:
  1) gcc/9.1.0   2) simd/avx2   3) bar/5.4
[mod3 (homebrewed)]$ bar
bar 5.4 (gcc/9.1.0, avx2)
[mod3 (homebrewed)]$ module unload bar
[mod3 (homebrewed)]$ module switch simd simd/avx
[mod3 (homebrewed)]$ module load bar/5.4
[mod3 (homebrewed)]$ module list
Currently Loaded Modulefiles:
  1) gcc/9.1.0   2) simd/avx    3) bar/5.4
[mod3 (homebrewed)]$ bar
bar 5.4 (gcc/9.1.0, avx)
[mod3 (homebrewed)]$ module unload bar
[mod3 (homebrewed)]$ module switch simd simd/sse4.1
[mod3 (homebrewed)]$ module load bar/5.4

**** ERROR *****:
foo/5.4 does not appear to be built for compiler gcc/9.1.0 and simd/sse4.1
Please select a different openmpi version or different compiler/simd combination.


[mod3 (homebrewed)]$ module list
Currently Loaded Modulefiles:
  1) gcc/9.1.0     2) simd/sse4.1
