Hello Jens-Olaf,
Starting version 4.2, load and unload commands inside modulefile
imply definition of requirement or conflict.
"module unload intel" means unload intel + conflict intel
"module load intel/2020" means load intel/2020 + prereq intel/2020
Option --not-req allows to skip requirement/conflict definition. It
is available starting version 4.7.0.
With version 4.5.2, changing these two commands into:
module switch intel/2020
Should do what you expect.
Regards,
Xavier
On Thu, 2023-04-20 at 07:33 +0000, Jens-Olaf Beismann wrote:
> Good morning,
>
> one of our customers observed a different behavior of commands in a
> module file when using it with either modules version 3.2.10 or
> version 4.5.2.
>
> The module file (called jotest/1.0 for testing purposes) contains
> these lines
>
> module unload intel
> module load intel/2020
>
> Among the available modules we only have
>
> intel/2020(default)
>
> i.e. there is no other module file in the "intel" directory.
>
> Now "module load jotest" works fine with version 3.2.10, i.e.
> afterwards intel/2020 and jotest/1.0 are loaded (independent of
> intel/2020 being loaded before or not).
>
> With version 4.5.2, however, we get this error
>
> % module load jotest
> Loading intel/2020
> ERROR: Conflicting 'jotest/1.0' is loading
>
> Loading jotest/1.0
> ERROR: Load of requirement 'intel/2020' failed
>
> We are still struggling to understand the actual reason for the
> error issued for "module load intel/2020" and therefore didn't yet
> find a way to achieve the desired result with 4.5.2. Any hints
> would be highly appreciated, in particular we'd like to understand
> if there's something conceptionally wrong with the unload/load
> sequence in "jotest/1.0".
>
> Thank you and best regards,
>
> Jens-Olaf
> ---
> Dr. Jens-Olaf Beismann Benchmarking Expert
> High Performance Computing NEC Deutschland GmbH
> https://www.nec.com/en/global/solutions/hpc/
> Tel: +49 431 2372063 (office) +49 152 22851521 (mobile)
> ---
> NEC Deutschland GmbH, Fritz-Vomfelde-Straße 14, D-40547 Düsseldorf
> Geschäftsführer: Yuichi Kojima
> Handelsregister Düsseldorf, HRB 57941, VAT ID DE129424743
>
>
> _______________________________________________
> Modules-interest mailing list
> Mod...@li...
> https://lists.sourceforge.net/lists/listinfo/modules-interest
|