[cam-users] MPI files

Hyeong Seog Kim dol153 at cpl.snu.ac.kr
Fri Sep 10 01:48:28 MDT 2004


Hi  Cathy

I think mpi library dose not exist in directory "/usr/lib"


Configure with options " -mpi_inc <dir> -mpi_lib <dir>" ( <dir> is your mpi
include file or library directory)
or 
Edit a Makefile.

The following text is in my Makefile.

INC_MPI     := /usr/local/mpich-pgi/include
LIB_MPI     := /usr/local/mpich-pgi/lib

This terms are mpi library and include files.

Good luck!

-----------(Head of my Makefile)
----------------------------------------------------------------------------
-------
# Make macros for CAM.

UNAMES       := Linux
ROOTDIR      := /data2/dol/CAM3/cam1
EXENAME      := cam
MODEL_EXEDIR := /data2/dol/CAM3/mpicam
INC_NETCDF   := /usr/local/netcdf/include
LIB_NETCDF   := /usr/local/netcdf/lib
MOD_NETCDF   := 
INC_MPI      := /usr/local/mpich-pgi/include
LIB_MPI      := /usr/local/mpich-pgi/lib
MPI_LIB_NAME := mpich
ESMF_ROOT    := /data2/dol/CAM3/cam1/models/utils/esmf
ESMF_BLD     := /data2/dol/CAM3/mpicam/esmf
DEBUG        := FALSE
:
:
:
----------------------------------------------------------------------------
--------------------
===========================================================
Be Happy!

Kim, Hyeong Seog



-----Original Message-----
From: cam-users-bounces at ucar.edu [mailto:cam-users-bounces at ucar.edu] On
Behalf Of Cathryn Meyer
Sent: Thursday, September 09, 2004 11:24 PM
To: cam-users at ucar.edu
Subject: [cam-users] MPI files

I am having trouble configuring CAM3.0 on an intel linux cluster.  When
I run configure interactively, all goes well until the following command
and error lines:

Testing MPI library... **** FAILED ****
Issued the command:
gmake test_mpi 2>&1
 
The output was:
cat: Srcfiles: No such file or directory
Makefile:1008: /home/ccm33/Depends: No such file or directory
/home/ccm33/cam1/models/atm/cam/bld/mkSrcfiles > /home/ccm33/Srcfiles
/home/ccm33/cam1/models/atm/cam/bld/mkDepends Filepath Srcfiles >
/home/ccm33/Depends
pgf90 -c -I. -I/home/ccm33/cam1/models/atm/cam/src/physics/cam1
-I/home/ccm33/cam1/models/atm/cam/src/dynamics/eul
-I/home/ccm33/cam1/models/atm/cam/src/control
-I/home/ccm33/cam1/models/csm_share/shr
-I/home/ccm33/cam1/models/atm/cam/src/utils
-I/home/ccm33/cam1/models/utils/timing
-I/home/ccm33/cam1/models/atm/cam/src/advection/slt
-I/home/ccm33/cam1/models/atm/cam/src/ocnsice/dom
-I/home/ccm33/cam1/models/lnd/clm2/src/main
-I/home/ccm33/cam1/models/lnd/clm2/src/biogeophys
-I/home/ccm33/cam1/models/lnd/clm2/src/biogeochem
-I/home/ccm33/cam1/models/lnd/clm2/src/mksrfdata
-I/home/ccm33/cam1/models/lnd/clm2/src/riverroute
-I/home/ccm33/cam1/models/ice/csim4 -I/home/ccm33/netcdf-3.5.1/include
-I/usr/include  -I/home/ccm33/esmf/mod/modO/linux_pgi
-I/home/ccm33/netcdf-3.5.1/lib -r8 -i4 -DCAM -DNO_SHR_VMATH
-DHIDE_SHR_MSG  -DLINUX -DTHREADED_OMP -Mrecursive -Mdalign -Mextend
-DPGF90 -byteswapio -fast -mp  test_mpi.F
pgf90 -o test_mpi test_mpi.o  -mp -L/usr/lib -lmpi
test_mpi.o(.text+0x2c): In function `MAIN_':
: undefined reference to `mpi_init_'
gmake: *** [test_mpi] Error 2
--------------------------------------------------------

How do I link my MPI library so this does not happen?

Thanks,
Cathy

-- 
Cathryn Meyer
Department of Geology and Geophysics
Yale University
cathryn.meyer at yale.edu
(203)432-1959
_______________________________________________
cam-users mailing list
cam-users at ucar.edu
http://mailman.ucar.edu/mailman/listinfo/cam-users




More information about the cam-users mailing list