NCAR / spack-gust

Spack production user software stack on the Gust test system
4 stars 0 forks source link

Add conflicts for serial and MPI versions of software #9

Closed vanderwb closed 1 year ago

vanderwb commented 2 years ago

Jim: "when I load netcdf-mpi it does not unload netcdf and hdf5"

vanderwb commented 2 years ago

@jedwards4b Conflicts should be in place now for netcdf and hdf5 as of f69bc09.

jedwards4b commented 2 years ago

@vanderwb I find this a bit confusing:

module reset
Running "module reset". Resetting modules to system default. The following $MODULEPATH directories have been removed: None
[gust1] jedwards@gust01:~> module load netcdf-mpi
Lmod has detected the following error:  Cannot load module "hdf5-mpi/1.12.2" because these module(s) are loaded:
   hdf5

While processing the following module(s):
    Module fullname   Module Filename
    ---------------   ---------------
    hdf5-mpi/1.12.2   /glade/u/apps/gust/modules/22.08/cray-mpich/8.1.18-jejyfue/cce/14.0.2/hdf5-mpi/1.12.2.lua
    netcdf-mpi/4.8.1  /glade/u/apps/gust/modules/22.08/cray-mpich/8.1.18-jejyfue/cce/14.0.2/netcdf-mpi/4.8.1.lua
jedwards4b commented 2 years ago

Maybe it's okay - if I module rm netcdf first it also removes the hdf5.

vanderwb commented 2 years ago

Yes - I agree. It would be nice if Lmod noticed the netcdf conflict before the hdf5 one, but I suppose that's a consequence of its order of operations. It handles the module swap netcdf netcdf-mpi case gracefully though, which I think is the important part.