Hi Adrien,
As far as I remind, there is no function that currently gives you the
variants of a loaded module from another module, but you may try using
the "is-loaded" command:
if {[is-loaded ziege compiler=gcc]} {
// code
} elseif {[is-loaded ziege compiler=llvm]}
..
}
Best,
Xavier
Le mar. 24 déc. 2024 à 09:44, Adrien COTTE <adr...@as...> a écrit :
>
> Hi,
>
> Is it possible to get the variant of another module?
>
> A dummy example.
>
> $ module load ziege/1.0 compiler=gcc
> $ module load goat/2.0
>
> In the goat/2.0 modulefile, I would like to check the ziege/1.0 compiler variant.
>
> Best,
> Adrien Cotte
> _______________________________________________
> Modules-interest mailing list
> Mod...@li...
> https://lists.sourceforge.net/lists/listinfo/modules-interest
|