I am using CESM1.2.2.1 for deep time paleoclimate, and I would like to compile the runoff_to_ocean utility on Cheyenne.
Unfortunately, I am running into this error.
ld: /glade/u/apps/ch/opt/netcdf-mpi/4.6.1/mpt/2.19/intel/17.0.1/lib/libnetcdf.a(libdispatch_la-dfile.o): in function `NC_check_file_type':
dfile.c:(.text+0x76c): undefined reference to `MPI_File_open'
ld: dfile.c:(.text+0x790): undefined reference to `MPI_File_get_size'
ld: dfile.c:(.text+0x88d): undefined reference to `MPI_File_read_at_all'
ld: dfile.c:(.text+0xa36): undefined reference to `MPI_File_read_at_all'
ld: dfile.c:(.text+0xa8e): undefined reference to `MPI_File_close'
I am following the instructions provided:
cd /glade/work/mjfu/cesm1_2_2_1/tools/mapping/gen_mapping_files/runoff_to_ocn/src
export CCSMROOT=/glade/work/mjfu/cesm1_2_2_1
$CCSMROOT/scripts/ccsm_utils/Machines/configure -mach cheyenne
./build.csh
env_mach_specific is generated as follows
#! /bin/tcsh
# -------------------------------------------------------------------------
# Laramie build specific settings
# -------------------------------------------------------------------------
source /etc/profile.d/modules.csh
module purge
module load intel/17.0.1
module load ncarenv/1.2
module load mkl
module load ncarcompilers/0.4.1
module load mpt/2.19
if( $MPILIB == "mpi-serial" ) then
module load netcdf/4.4.1.1
else
module load netcdf-mpi/4.6.1
module load pnetcdf/1.11.0
endif
# -------------------------------------------------------------------------
# Build and runtime environment variables - edit before the initial build
# -------------------------------------------------------------------------
setenv OMP_STACKSIZE 256M
setenv NETCDF_PATH $NETCDF
setenv PNETCDF_PATH $PNETCDF
Thank you for your help! It is much appreciated!
Unfortunately, I am running into this error.
ld: /glade/u/apps/ch/opt/netcdf-mpi/4.6.1/mpt/2.19/intel/17.0.1/lib/libnetcdf.a(libdispatch_la-dfile.o): in function `NC_check_file_type':
dfile.c:(.text+0x76c): undefined reference to `MPI_File_open'
ld: dfile.c:(.text+0x790): undefined reference to `MPI_File_get_size'
ld: dfile.c:(.text+0x88d): undefined reference to `MPI_File_read_at_all'
ld: dfile.c:(.text+0xa36): undefined reference to `MPI_File_read_at_all'
ld: dfile.c:(.text+0xa8e): undefined reference to `MPI_File_close'
I am following the instructions provided:
cd /glade/work/mjfu/cesm1_2_2_1/tools/mapping/gen_mapping_files/runoff_to_ocn/src
export CCSMROOT=/glade/work/mjfu/cesm1_2_2_1
$CCSMROOT/scripts/ccsm_utils/Machines/configure -mach cheyenne
./build.csh
env_mach_specific is generated as follows
#! /bin/tcsh
# -------------------------------------------------------------------------
# Laramie build specific settings
# -------------------------------------------------------------------------
source /etc/profile.d/modules.csh
module purge
module load intel/17.0.1
module load ncarenv/1.2
module load mkl
module load ncarcompilers/0.4.1
module load mpt/2.19
if( $MPILIB == "mpi-serial" ) then
module load netcdf/4.4.1.1
else
module load netcdf-mpi/4.6.1
module load pnetcdf/1.11.0
endif
# -------------------------------------------------------------------------
# Build and runtime environment variables - edit before the initial build
# -------------------------------------------------------------------------
setenv OMP_STACKSIZE 256M
setenv NETCDF_PATH $NETCDF
setenv PNETCDF_PATH $PNETCDF
Thank you for your help! It is much appreciated!