Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cheyenne build modulefiles can not be loaded #325

Closed
mkavulich opened this issue Jul 6, 2022 · 1 comment
Closed

Cheyenne build modulefiles can not be loaded #325

mkavulich opened this issue Jul 6, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@mkavulich
Copy link
Collaborator

Description

When attempting to build on Cheyenne using either Intel or GNU compilers, I am met with an immediate failure due to module conflicts:

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. Clone ufs-srweather-app on Cheyenne
  2. Attempt to build using devbuild.sh using either intel or gnu compilers
  3. Observe error:

Intel

./devbuild.sh -p=cheyenne
PLATFORM(MACHINE)=cheyenne
COMPILER=intel
MODULE_FILE=build_cheyenne_intel
... Load MODULE_FILE and create BUILD directory ...
Lmod has detected the following error:  Cannot load module "netcdf/4.8.1" because these module(s) are loaded:
   hdf5

While processing the following module(s):
    Module fullname       Module Filename
    ---------------       ---------------
    netcdf/4.8.1          /glade/u/apps/ch/modulefiles/default/intel/2022.1/netcdf/4.8.1.lua
    ncio/1.1.2            /glade/work/epicufsrt/GMTB/tools/intel/2022.1/hpc-stack-v1.2.0_6eb6/modulefiles/mpi/intel/2022.1/mpt/2.25/ncio/1.1.2.lua
    srw_common            /glade/scratch/kavulich/UFS_SRW/testing/test_new_python_env_activation/ufs-srweather-app/modulefiles/srw_common
    build_cheyenne_intel  /glade/scratch/kavulich/UFS_SRW/testing/test_new_python_env_activation/ufs-srweather-app/modulefiles/build_cheyenne_intel

Gnu

./devbuild.sh -p=cheyenne -c=gnu
PLATFORM(MACHINE)=cheyenne
COMPILER=gnu
MODULE_FILE=build_cheyenne_gnu
... Load MODULE_FILE and create BUILD directory ...
Lmod has detected the following error:  Cannot load module "netcdf/4.8.1" because these module(s) are loaded:
   hdf5

While processing the following module(s):
    Module fullname     Module Filename
    ---------------     ---------------
    netcdf/4.8.1        /glade/u/apps/ch/modulefiles/default/gnu/11.2.0/netcdf/4.8.1.lua
    ncio/1.1.2          /glade/work/epicufsrt/GMTB/tools/gnu/11.2.0/hpc-stack-v1.2.0/modulefiles/mpi/gnu/11.2.0/mpt/2.25/ncio/1.1.2.lua
    srw_common          /glade/scratch/kavulich/UFS_SRW/testing/test_new_python_env_activation/ufs-srweather-app/modulefiles/srw_common
    build_cheyenne_gnu  /glade/scratch/kavulich/UFS_SRW/testing/test_new_python_env_activation/ufs-srweather-app/modulefiles/build_cheyenne_gnu

Additional Context

This error was introduced with the addition of the ncio module to srw_common in #269. The error was not seen in the testing for that PR, which suggests this may be dependent on the specifics of the user's environment.

Temporary Fix

A temporary fix for anyone else observing this error is simply to remove the final line of the srw_common module. The resulting build will not work with the recently introduced GSI component, however.

Permanent Fix

I am working with the NCEPLIBS/spack team to expedite the installation of spack-stack on Cheyenne; I am optimistic that moving to this newer method of installing NCEP libraries will fix this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant