Hi Kenneth,
The proper way would be making --list-toolchains a bit more intelligent, and maybe support the notion of --list-available-toolchains or something like that.

For now, this seems to be doing what you're after:

module avail $(eb --list-toolchains | grep -v "List of known" | cut -f1 -d: | sed 's@$@/@g' | tr '\n' ' ')

i.e.:

i) obtain a list of known toolchain names via --list-toolchains
ii) make sure to append a / after each name
iii) check which modules are available for those toolchains


I'm not sure whether this will work for you since you're hiding toolchains from users. Maybe "module avail --show-hidden" suffices?


This almost works:
module --show-hidden avail $(eb --list-toolchains | grep -v "List of known" | cut -f1 -d: | sed 's@$@/@g' | tr '\n' ' ')

except that Bart did some magic so that the iccifort;<version> module corresponding to this toolchain is actually called intel/<version>

I'm not sure what is the magic involved. Maybe Bart can help with this part.
In any case: Maxime, please open a feature request to support this more easily via --list-toolchains or some derivative.

Will do.

Maxime

Reply via email to