Hello,
I am using module files to test various versions of compilers and libraries. I name my modules <lib name>/<lib version>/<compiler name>/<compiler version>/<other deps>. For instance, I play with NetCDF 4.9.3 built with various compilers :
netcdf/4.9.3/gnu/11.4.1/openmpi/5.0.6/hdf5/1.14.3 netcdf/4.9.3/nvhpc/24.5/openmpi/5.0.6/hdf5/1.14.3
netcdf/4.9.3/gnu/13.2.0/openmpi/5.0.6/hdf5/1.14.3 netcdf/4.9.3/nvhpc/25.1/openmpi/5.0.6/hdf5/1.14.3
netcdf/4.9.3/llvm/19.1.7/openmpi/5.0.6/hdf5/1.14.3
My need is to load any of these NetCDF that has been built with GCC (any version), or other constraints. I found a way to search using wildcards (module search netcdf/*/gnu), but the load-any command does not accept such patterns. According to the stable documentation, only 4 commands (avail list save-list what-is) accept a pattern. Would it be possible to add support for pattern in the load command, or to the load-any (I believe it makes more sense to add the support in the later), in order for "module load-any netcdf/*/gnu" to load something ?
Best regards,
Antoine Morvan.
|