Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

Makefile error during MPAS init_atmosphere compile on Derecho

jpiers

New member
I am getting an error when attempting to compile init_atmosphere on Derecho. Here is the step tripping me up:
make gfortran CORE=init_atmosphere
And the (abbreviated) errors:
mpas_kind_types.F(20): error #5149: Illegal character in statement label field [o]
module mpas_kind_typeseger
make[1]: Leaving directory '/glade/derecho/scratch/jpiers/MPAS/MPAS-Model'
make: *** [Makefile:382: gfortran] Error 2
I am using the old Cheyenne MPAS tutorial, so when I check on mpicc, mpif90, $PIO, $NETCDF, $PNETCDF it appears to be all set. It's not clear to me how to best replicate the modules using Derecho from the recent 2023 MPAS tutorial, but here are my currently loaded modules:
Currently Loaded Modules:
1) ncarenv/23.09 (S) 3) intel/2023.2.1 5) cray-mpich/8.1.27 7) netcdf/4.9.2 9) parallelio/2.6.2 11) nco/5.1.9
2) craype/2.7.23 4) ncarcompilers/1.0.0 6) hdf5/1.12.2 8) parallel-netcdf/1.12.3 10) ncl/6.6.2
Hopefully this is enough info to get started. Thanks!
 
It looks like based on your modules you want to use the intel compilers, but were trying to have Make build the gfortran target that is for the GNU/GCC compilers.

Currently on Derecho, I have the best luck with the intel-classic compilers and the ifort target. I would recommend running the following commands:

Bash:
# Reset the modules to just the required "sticky" ones like ncarenv
module purge
# Load the minimal stack for MPAS
module load intel-classic ncarcompilers cray-mpich netcdf-mpi parallel-netcdf
module list
Output:
Code:
Currently Loaded Modules:
  1) ncarenv/23.09          (S)   3) ncarcompilers/1.0.0   5) cray-mpich/8.1.27   7) netcdf-mpi/4.9.2
  2) intel-classic/2023.2.1       4) craype/2.7.23         6) hdf5-mpi/1.12.2     8) parallel-netcdf/1.12.3

  Where:
   S:  Module is Sticky, requires --force to unload or purge

Bash:
# [Optional] Load PIO if you want to use that
module load parallelio
module list
Output:
Code:
Currently Loaded Modules:
  1) ncarenv/23.09          (S)   3) ncarcompilers/1.0.0   5) cray-mpich/8.1.27   7) netcdf-mpi/4.9.2         9) parallelio/2.6.2
  2) intel-classic/2023.2.1       4) craype/2.7.23         6) hdf5-mpi/1.12.2     8) parallel-netcdf/1.12.3

  Where:
   S:  Module is Sticky, requires --force to unload or purge

Then you should be set up to build the `ifort` target:
Bash:
make ifort CORE=init_atmosphere

---

Note 1: Right now we are having some issues with the GNU + cray-mpich software stack on Derecho. We're working on some changes to address this.

Note 2: I would recommend this v8.0 of the MPAS Tutorial and this Agenda to match with the Boulder2023 slides you linked. Though the tutorial was still on Cheyenne. Consult Derecho documentation (KnowledgeBase or NCAR HPC Documentation) for the differences between the systems (like scratch spaces).
 
Please follow the steps below to compile MPAS-init:

module purge
module load ncarenv/23.06
module load intel/2023.0.0
module load ncarcompilers/1.0.0
module load cray-mpich/8.1.25
module load craype/2.7.20
module load parallel-netcdf/1.12.3
module load netcdf-mpi/4.9.2


make clean CORE=init_atmosphere
make ifort CORE=init_atmosphere PRECISION=single

Let me know if you still have issues.
 
It looks like based on your modules you want to use the intel compilers, but were trying to have Make build the gfortran target that is for the GNU/GCC compilers.

Currently on Derecho, I have the best luck with the intel-classic compilers and the ifort target. I would recommend running the following commands:

Bash:
# Reset the modules to just the required "sticky" ones like ncarenv
module purge
# Load the minimal stack for MPAS
module load intel-classic ncarcompilers cray-mpich netcdf-mpi parallel-netcdf
module list
Output:
Code:
Currently Loaded Modules:
  1) ncarenv/23.09          (S)   3) ncarcompilers/1.0.0   5) cray-mpich/8.1.27   7) netcdf-mpi/4.9.2
  2) intel-classic/2023.2.1       4) craype/2.7.23         6) hdf5-mpi/1.12.2     8) parallel-netcdf/1.12.3

  Where:
   S:  Module is Sticky, requires --force to unload or purge

Bash:
# [Optional] Load PIO if you want to use that
module load parallelio
module list
Output:
Code:
Currently Loaded Modules:
  1) ncarenv/23.09          (S)   3) ncarcompilers/1.0.0   5) cray-mpich/8.1.27   7) netcdf-mpi/4.9.2         9) parallelio/2.6.2
  2) intel-classic/2023.2.1       4) craype/2.7.23         6) hdf5-mpi/1.12.2     8) parallel-netcdf/1.12.3

  Where:
   S:  Module is Sticky, requires --force to unload or purge

Then you should be set up to build the `ifort` target:
Bash:
make ifort CORE=init_atmosphere

---

Note 1: Right now we are having some issues with the GNU + cray-mpich software stack on Derecho. We're working on some changes to address this.

Note 2: I would recommend this v8.0 of the MPAS Tutorial and this Agenda to match with the Boulder2023 slides you linked. Though the tutorial was still on Cheyenne. Consult Derecho documentation (KnowledgeBase or NCAR HPC Documentation) for the differences between the systems (like scratch spaces).
This method did the trick; thank you!
 
Top