Open geimer opened 10 years ago
fyi. Lmod seems to implement this concept with a family
keyword:
https://www.tacc.utexas.edu/tacc-projects/lmod/system-administrator-guide/suggestions-for-modulefiles
AFAI can tell, this could perhaps be a dict in python like:
family = ['mpi-stack', 'instrumented']
# the examples are fictional...
It should not be possible to load multiple MPI stack modules at the same time without warning/error message.
This cannot be solved using the 'conflict' keyword, as it expects a static list of modulefile names, i.e., this list would have to be updated once a new MPI stack is added.
A simple solution is to set a special environment variable (e.g., 'EBCONFLICT_MPISTACK') to the MPI stack name by the modulefile. Then, this can easily be checked before loading the module.