[CPMD-list] Help on compilation parallel cpmd.x
=?gb2312?B?U2hhbmd5aSBNYQ==?=
shyma at imr.ac.cn
Sun Nov 6 17:12:47 CET 2005
Dear cpmd user:
I meet an tricky problem when I compile the cpmd3.9.2 paralle executable cpmd.x program and need your help! My PC computer is intel p4 2.4G with Redhat9.0 system. The detail step that I complied follows:
Firstly, I install the pgi5.2 compiler, when I type pgf90, it display
"pgf90-Warning-No files to process"
so I think I install it successfully!
Secondly, I compile lam-mpi-7.1.1 with pgi compiler like this:
"# export FC=pgf90
# export CC=pgcc
# export CXX=pgCC", and then "configure ....make...make install" it. I verify the installation with typing
"# mpif77</P>
# pgf90-Warning-No files to process "
And then I make the Makefile with PC-PGI-MPI. The head of the Make file like this:
"
#----------------------------------------------------------------------------
# Makefile for cpmd.x (plane wave electronic calculation)
# Configuration: PC-PGI-MPI
# Creation of Makefile: 11ÔÂ 6 2005
# on Linux griffin 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 GNU/Linux
# Author: shyma
#----------------------------------------------------------------------------
#
SHELL = /bin/sh
#
#--------------- Default Configuration for PC-PGI-MPI ---------------
SRC = .
DEST = .
BIN = .
#QMMM_FLAGS = -D__QMECHCOUPL
#QMMM_LIBS = -L. -lmm
FFLAGS = -Mr8 -pc=64 -tp p7
LFLAGS = -llapack -lblas $(QMMM_LIBS)
CFLAGS =
CPP = /lib/cpp -P -C -traditional
CPPFLAGS = -D__Linux -D__PGI -DFFT_DEFAULT \
-DPARALLEL -DMYRINET -D__pgf90
NOOPT_FLAG =
CC = mpicc -O2 -Wall
FC = mpif77 -c -fast
LD = mpif77 -fast
AR = ar
#----------------------------------------------------------------------------
#----------------------------------------------------------------------------
# Personal Configuration
#----------------------------------------------------------------------------
SRC = /home/shyma/cpmd/CPMD/SOURCE
FC = mpif77 -c -fast -I. -I$(SRC)
#----------------------------------------------------------------------------
# End of Personal Configuration
#----------------------------------------------------------------------------
CFGDEST = ../cpmd-pc-pgi-mpi
CFGMACH = PC-PGI-MPI
.....................................
.......................
"
But it always display some error at the end of compilation when i make it:
"..............................................
...........................................
t_kpoint_p.o dnlpdk_p.o rnl_dk_p.o kpert_potential_p.o up3_p.o friesner_c_p.o
matrix_p.o ks_ener_p.o kpert_util_p.o fukui_p.o mdfile.o kdp_diag.o kdp_prep.o kdp_rho.o kdp_stress_kin.o kdpoints.o rhoofr_kdp.o mm_detsp.o mm_init.o mm_dim.o
mm_qmmm_forcedr.o mm_mdmain.o mm_coninp.o mm_cpmd_add_MM_forces_f77.o mm_cpmd_esp_charges_f77.o mm_cpmd_ext_pot_f77.o mm_mddiag.o mm_forces_diag.o mm_rho_forcedr.o vdwin.o vdw.o bs_forces_diag.o bswfo.o lsforce.o setbsstate.o
wrccfl.o sysdepend.o -L. -latlas
my_para.o(.text+0x20): In function `my_start_':
: undefined reference to `mpi_init_'
my_para.o(.text+0x134f): In function `my_end_':
: undefined reference to `mpi_finalize_'
my_para.o(.text+0x1382): In function `my_group_':
: undefined reference to `mpi_comm_group_'
my_para.o(.text+0x13ba): In function `my_group_':
: undefined reference to `mpi_group_incl_'
my_para.o(.text+0x13e8): In function `my_group_':
: undefined reference to `mpi_comm_create_'
my_para.o(.text+0x1450): In function `my_stopall_':
: undefined reference to `mpi_abort_'
my_para.o(.text+0x1489): In function `my_sync_':
: undefined reference to `mpi_barrier_'
my_para.o(.text+0x1520): In function `my_environ_':
: undefined reference to `mpi_comm_rank_'
my_para.o(.text+0x1544): In function `my_environ_':
: undefined reference to `mpi_comm_size_'
my_para.o(.text+0x1616): In function `my_bcast_':
: undefined reference to `mpi_bcast_'
my_para.o(.text+0x192e): In function `my_bsend_':
: undefined reference to `mpi_send_'
my_para.o(.text+0x1a26): In function `my_brecv_':
: undefined reference to `mpi_recv_'
my_para.o(.text+0x1ae4): In function `my_concat_':
: undefined reference to `mpi_allgather_'
my_para.o(.text+0x1bec): In function `my_trans_':
: undefined reference to `mpi_alltoall_'
my_para.o(.text+0x1d59): In function `my_combine_':
: undefined reference to `mpi_allreduce_'
my_para.o(.text+0x1db7): In function `my_combine_':
: undefined reference to `mpi_allreduce_'
my_para.o(.text+0x1e2c): In function `my_combine_':
: undefined reference to `mpi_allreduce_'
my_para.o(.text+0x1ea0): In function `my_combine_':
my_para.o(.text+0x1efe): In function `my_combine_':
my_para.o(.text+0x2079): In function `my_combine_source_':
: undefined reference to `mpi_reduce_'
my_para.o(.text+0x2149): In function `my_shift_':
: undefined reference to `mpi_comm_rank_'
my_para.o(.text+0x219e): In function `my_shift_':
: undefined reference to `mpi_comm_size_'
my_para.o(.text+0x228b): In function `my_shift_':
: undefined reference to `mpi_isend_'
my_para.o(.text+0x2306): In function `my_shift_':
: undefined reference to `mpi_recv_'
my_para.o(.text+0x24e6): In function `my_sendrecv_':
: undefined reference to `mpi_sendrecv_'
mpif77: No such file or directory
make: *** [cpmd.x] Error 2
"
So what's wrong with my compilation? I had compiled the parallel executable cpmd.x successfully half year ago as the same the steps above. So there must be some step or option I missed this time!
Could anyone help me check out my steps and solve the problem? Any comments is appreciated!
Best regards!
shyma
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cpmd.org/pipermail/cpmd-list/attachments/20051107/c0e4d8e3/attachment.html
More information about the CPMD-list
mailing list