Skip to content

Error message reported about an indirect dependency issue whereas module is correctly loaded #509

@xdelaruelle

Description

@xdelaruelle

A requirement error message appears when loading a module whereas an alternative dependency has been successfully loaded, thus loaded environment satisfies all dependency constraints.

$ cat modulefiles/cuda/11.6
#%Module
conflict cuda 
$ cat modulefiles/cuda/12.2
#%Module
conflict cuda 
$ cat modulefiles/hwloc/2.2.0
#%Module
conflict hwloc
$ cat modulefiles/hwloc/2.9.2
#%Module
prereq cuda/12
conflict hwloc
$ cat modulefiles/hwloc/.modulerc
#%Module
module-version hwloc/2.2.0 default
$ cat modulefiles/openmpi/4.1.5
#%Module
prereq hwloc/2.9.2 hwloc

$ ml cuda/11
$ ml openmpi
Loading openmpi/4.1.5
  ERROR: Load of requirement cuda/12 failed
  Loading requirement: hwloc/2.2.0
$ ml
Currently Loaded Modulefiles:
 1) cuda/11.6   2) hwloc/2.2.0   3) openmpi/4.1.5  

In the above example, an attempt to load hwloc/2.9.2 is done which fails as its dependency cuda/12 cannot be loaded (cuda/11 is already loaded). Main module openmpi/4.1.5 successfully loads as hwloc/2.2.0 is loaded instead of version 2.9.2.

The error message on openmpi loading block message about cuda/12 is disturbing:

  • it does not relate to a direct dependency of openmpi/4.1.5, thus it is hard to understand what module requires it
  • this error is not one for openmpi module load as an alternative has been successfully loaded.

Thanks to @adrien-cotte and his team for the bug report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions