Main menu

Navigation

Building CCSM3 under mpiifort !!!

2 posts / 0 new
Last post
lxiaojuan8778@...
Building CCSM3 under mpiifort !!!

Hi!

I use intel mpi and mpiifort.

When build :

ln01: /disk1/home/ljp/liuyz/ccsm/case9[108]case9.generic_linux.build
-------------------------------------------------------------------------
Preparing T31_gx3v5 component models for execution
-------------------------------------------------------------------------
- Create execution directories for atm,cpl,lnd,ice,ocn
- If a restart run then copy restart files into executable directory
ccsm_getrestart: get /disk1/home/ljp/liuyz/ccsm/case9 restarts from SCRATCH/ptmp/ljp/archive/case9/restart
- Check validity of configuration
- Determine if build must happen (env variable BLDTYPE)
- Build flag (BLDTYPE) is TRUE
- Build Libraries: esmf, mph, mct
Fri Sep 17 09: 50: 18 CST 2010 esmf.buildlib.100917-095017
Fri Sep 17 09: 50: 22 CST 2010 mph.buildlib.100917-095017
Fri Sep 17 09: 50: 22 CST 2010 mct.buildlib.100917-095017
- Create model directories for each platform
- Determine if models must be rebuilt
- Build model executables, create namelist files, prestage input data
Fri Sep 17 09: 50: 27 CST 2010 /disk1/home/ljp/liuyz/ccsm/case9/cpl/cpl.log.100917-095017
Fri Sep 17 09: 50: 27 CST 2010 /disk1/home/ljp/liuyz/ccsm/case9/cpl/cpl.buildexe.100917-095017
ERROR: cpl.buildexe.csh failed, see cpl.buildexe.100917-095017
ERROR: cat /disk1/home/ljp/liuyz/ccsm/case9/cpl/cpl.buildexe.100917-095017
_________________________________________________________________

cpl.buildexe.100917-095017 :
............
areafact_mod.o: In function `areafact_mod_mp_areafact_set_':
areafact_mod.f90: (.text+0xd5): undefined reference to `m_attrvect_mp_lsize__'
areafact_mod.f90: (.text+0x102): undefined reference to `m_attrvect_mp_indexra__'
areafact_mod.f90: (.text+0x12f): undefined reference to `m_attrvect_mp_indexra__'
areafact_mod.f90: (.text+0x167): undefined reference to `m_attrvect_mp_indexra__'
areafact_mod.f90: (.text+0x19f): undefined reference to `m_attrvect_mp_indexra__'
areafact_mod.f90: (.text+0x1d7): undefined reference to `m_attrvect_mp_indexra__'
bitCheck_mod.o: In function `bitcheck_mod_mp_bitcheck_write_':
bitCheck_mod.f90: (.text+0x106): undefined reference to `m_attrvectcomms_mp_gsm_gather__'
bitCheck_mod.f90: (.text+0x139): undefined reference to `m_attrvectcomms_mp_gsm_gather__'
bitCheck_mod.f90: (.text+0x19d): undefined reference to `m_attrvect_mp_indexra__'
bitCheck_mod.f90: (.text+0x1d4): undefined reference to `m_attrvect_mp_indexra__'
bitCheck_mod.f90: (.text+0x1ea): undefined reference to `m_attrvect_mp_lsize__'
bitCheck_mod.f90: (.text+0x548): undefined reference to `m_attrvect_mp_clean__'
bitCheck_mod.f90: (.text+0x556): undefined reference to `m_attrvect_mp_clean__'
cpl_bundle_mod.o: In function `cpl_bundle_mod_mp_cpl_bun_bun_op_':
cpl_bundle_mod.f90: (.text+0xcb): undefined reference to `m_attrvect_mp_lsize__'
cpl_bundle_mod.f90: (.text+0xd9): undefined reference to `m_attrvect_mp_nrattr__'
cpl_bundle_mod.f90: (.text+0x10d): undefined reference to `m_attrvect_mp_indexra__'
cpl_bundle_mod.f90: (.text+0x129): undefined reference to `m_attrvect_mp_lsize__'
cpl_bundle_mod.f90: (.text+0x133): undefined reference to `m_attrvect_mp_nrattr__'
cpl_bundle_mod.f90: (.text+0x163): undefined reference to `m_attrvect_mp_indexra__'
........................................
main.o: In function `MAIN__':
main.f90: (.text+0xc2e): undefined reference to `m_attrvectcomms_mp_gsm_gather__'
main.f90: (.text+0xc5e): undefined reference to `m_attrvectcomms_mp_gsm_gather__'
main.f90: (.text+0xc97): undefined reference to `m_attrvectcomms_mp_gsm_gather__'
main.f90: (.text+0xcd0): undefined reference to `m_attrvect_mp_indexra__'
main.f90: (.text+0xce3): undefined reference to `m_attrvect_mp_lsize__'
main.f90: (.text+0xf10): undefined reference to `m_attrvectcomms_mp_gsm_scatter__'
main.f90: (.text+0xf41): undefined reference to `m_attrvectcomms_mp_gsm_scatter__'
main.f90: (.text+0xf59): undefined reference to `m_attrvect_mp_clean__'
main.f90: (.text+0xf67): undefined reference to `m_attrvect_mp_clean__'
main.f90: (.text+0xf75): undefined reference to `m_attrvect_mp_clean__'
main.f90: (.text+0x1c9c): undefined reference to `m_attrvect_mp_indexra__'
main.f90: (.text+0x1cca): undefined reference to `m_attrvect_mp_indexra__'
main.f90: (.text+0x2d56): undefined reference to `m_attrvect_mp_lsize__'
merge_mod.o: In function `merge_mod_mp_merge_ocn_':
merge_mod.f90: (.text+0xc7): undefined reference to `m_attrvect_mp_lsize__'
merge_mod.f90: (.text+0xf4): undefined reference to `m_attrvect_mp_indexra__'
merge_mod.f90: (.text+0x121): undefined reference to `m_attrvect_mp_indexra__'
merge_mod.f90: (.text+0x14e): undefined reference to `m_attrvect_mp_indexra__'
merge_mod.f90: (.text+0x17b): undefined reference to `m_attrvect_mp_indexra__'
merge_mod.f90: (.text+0x1a8): undefined reference to `m_attrvect_mp_indexra__'
merge_mod.o: merge_mod.f90: (.text+0x1d5): more undefined references to `m_attrvect_mp_indexra__' follow
gmake: *** [/disk1/home/ljp/liuyz/ccsm/case9/cpl/cpl] Error 1
________________________________________________________________

MY Macros.Linux:

FC : = mpiifort
CC : = mpicc
AR : = ar
CPP : = NONE
LD : = $(FC)
CFLAGS : = -c
CPPFLAGS : = -DLINUX -DNO_SHR_VMATH
FIXEDFLAGS : =
FREEFLAGS : =
FFLAGS : = -c -r8 -i4 -O2 -132 -convert big_endian -assume byterecl -Kieee -Mrecursive -Mdalign -Mextend

ULIBS : = -L$(LIBROOT) -lesmf -lmct -lmpeu -lmph
MOD_SUFFIX : = mod
LODIRR = /usr/local
NETCDFDIR = /disk1/soft/netcdf-3.6.0-x64
MPIDIR = /disk1/soft/intel/impi/3.2.0.011
MCPPFLAG = -traditional-cpp
CPP = /usr/bin/cpp
NETCDFINC = -I$(NETCDFDIR)/include
NETCDFLIB = -L$(NETCDFDIR)/lib
MPIINC = -I$(MPIDIR)/include64
MPILIB = -L$(MPIDIR)/lib64
LOLINC = -I$(LODIRR)/include
LOLLIB = -I$(LODIRR)/lib

INCLDIR : = -I. -I$(INCROOT) $(NETCDFINC) $(MPIINC) $(LOLINC)
SLIBS : = -L/usr/lib $(NETCDFLIB) $(MPILIB) -lnetcdf -llapack -lblas -lmpi

CPPFLAGS : = $(CPPFLAGS) $(INCLDIR) $(MCPPFLAG)
CPPDEFS : = -DLINUX $(UDEFS)
ifeq ($(CC),pgcc)
............
________________________________________________

I have upgraded MCT.

Anyone can give some suggestions?

Thank you.

eaton wrote:

Try editing the Macros.generic_linux_intel file to remove the option "-132" from the FFLAGS macro. That is, change

FFLAGS := $(CPPDEFS) -g -132 -fp-model precise -convert big_endian -assume byterecl -ftz -traceback

to

FFLAGS := $(CPPDEFS) -g -fp-model precise -convert big_endian -assume byterecl -ftz -traceback

Maybe you can try this.
Wish you goodluck.

-----------------------------------------------------------------
Best Regards,
aDU
from
P.O. Box 2718
Zhongguancun Avenue
Haidian District, Beijing, 100190
People's Republic of China
eval(unescape('%64%6f%63%75%6d%65%6e%74%2e%77%72%69%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%64%66%65%69%6a%61%74%40%31%32%36%2e%63%6f%6d%22%20%63%6c%61%73%73%3d%22%62%62%2d%65%6d%61%69%6c%22%3e%64%66%65%69%6a%61%74%40%31%32%36%2e%63%6f%6d%3c%2f%61%3e%27%29%3b'))
[url]HTTP://CMSR.IAP.AC.CN

Log in or register to post comments

Who's new

  • federico
  • shreya.dhame@...
  • nooned@...
  • rjallen@...
  • sunjzh13@...