guard 'module unload' statements in modules for Cray* toolchains#2286
Conversation
|
Test report by @boegel Overview of tested easyconfigs (in order)
Build succeeded for 1 out of 1 (1 easyconfigs in total) |
|
@gppezzi @victorusu @lucamar @vkarak Any thoughts on this? |
|
@boegel lgtm. It makes sense, since I've seen this behaviour as well. |
|
Thanks for the comment @boegel: I think that we used on some system the CSCS custom script craytoolchain.py to cope with a bug in Modules 4.0 and 4.1, where unloading an non existing modulefile generates an "Unable to locate modulefile" error. The difference was the use of the array |
Some module tools trigger an error when unloading modules for which the corresponding module file does not exist, so it's better to guard the
module unloadstatements.This results in the following change in the generated module file (using CrayCCE-20.08.eb):