Hello,
I am working on porting CESM (and in particular CIME) to a cluster Greene in NYU.
I downloaded the code from github and checked out to version cesm2_3_beta17, and successfully ran
Our machine (Greene) works with Intel compilers and slurm. Here is how we commonly set up compilers:
As a result, the intel compilers and netcdf can be found here:
I created
However, when I try to pass tests in CIME, the intel compilers and netcdf-c library are not used, resulting in Errors
as it follows from log file (error and log file are attached):
As suggested by Jim Edwards, I checked
So, how to set preferences for cmake to pick intel compilers instead of gcc, and how to include an additional netcdf path because we have two (
Thanks for any advice,
Pavel Perezhogin
I am working on porting CESM (and in particular CIME) to a cluster Greene in NYU.
I downloaded the code from github and checked out to version cesm2_3_beta17, and successfully ran
./manage_externals/checkout_externals.Our machine (Greene) works with Intel compilers and slurm. Here is how we commonly set up compilers:
module purgemodule load cmake/3.28.0 intel/19.1.2 openmpi/intel/4.0.5module unload netcdfmodule load netcdf-fortran/intel/4.5.3 netcdf-c/intel/4.7.4 hdf5/intel/1.12.0As a result, the intel compilers and netcdf can be found here:
/share/apps/intel/19.1.2/bin/{icc,icpc, ifort}/share/apps/openmpi/4.0.5/intel/bin/{mpicc, mpicxx, mpifort}/share/apps/netcdf-c/4.7.4/intel//share/apps/netcdf-fortran/4.5.3/intelI created
config_machines.xml, config_batch.xml, greene.cmake and config_compilers in $HOME/.cime/, see attached files.However, when I try to pass tests in CIME, the intel compilers and netcdf-c library are not used, resulting in Errors
./scripts_regression_tests.py test_sys_build_system.TestBuildSystem --machine greene --debug --no-teardownas it follows from log file (error and log file are attached):
-- The Fortran compiler identification is GNU 11.3.1-- The C compiler identification is GNU 11.3.1-- Found NetCDF: -L/share/apps/netcdf-fortran/4.5.3/intel/lib -lnetcdff -- Could NOT find NetCDF (missing: NetCDF_C_LIBRARIES) As suggested by Jim Edwards, I checked
.env_mach_specific.sh in the case directory, and it uploads modules which I expect.So, how to set preferences for cmake to pick intel compilers instead of gcc, and how to include an additional netcdf path because we have two (
/share/apps/netcdf-c/4.7.4/intel/, /share/apps/netcdf-fortran/4.5.3/intel)?Thanks for any advice,
Pavel Perezhogin