Skip to Content.
Sympa Menu

forum - Compiling problem for parallel program abinit 4.6.5

forum@abinit.org

Subject: The ABINIT Users Mailing List ( CLOSED )

List archive

Compiling problem for parallel program abinit 4.6.5


Chronological Thread 
  • From: iloveabinit@gmail.com
  • To: forum@abinit.org
  • Subject: Compiling problem for parallel program abinit 4.6.5
  • Date: Mon, 23 Apr 2007 08:04:30 +0200


Dear All,

I have a problem on compiling abinit. I appreciate for any advice in adavnce.

I use PGI6.2 and MPICH2 to compile abinit 4.6.5. The sequential abinit is
successfully complied. But when I compile parallel program, there are
following errors:

/usr/local/mpich2/lib/libmpich.a(ch3u_getinterfaces.o)(.text+0x13b): In
function `MPIDU_CH3U_GetSockInterfaceAddr':
: warning: Using 'gethostbyname' in statically linked applications requires
at runtime the shared libraries from the glibc version used for linking
/usr/local/mpich2/lib/libmpich.a(allreduce.o)(.text+0x8d): In function
`MPIR_Allreduce':
: undefined reference to `pthread_getspecific'
/usr/local/mpich2/lib/libmpich.a(allreduce.o)(.text+0xc6): In function
`MPIR_Allreduce':
: undefined reference to `pthread_setspecific'
/usr/local/mpich2/lib/libmpich.a(allreduce.o)(.text+0x13d1): In function
`MPIR_Allreduce_inter':

Following is the makefile files.


# Machine type
MACHINE=P6
# Fortran optimized compilation
FC=/opt/pgi/linux86-64/6.2/bin/pgf90 -tp=k8-64 -Bstatic
FFLAGS=-Mextend -Mfree -O2
FFLAGS_LIBS = -O2

# C preprocessor, used to preprocess the fortran source.
CPP=/lib/cpp
CPP_FLAGS=-P -traditional -DCONTRACT

# C optimized compilation.
CC=cc
CFLAGS=-O

# Location of perl . Used to generate the script fldiff, in ~ABINIT/Utilities
.
PERL=/usr/bin/perl

# List of machine-dependent routines
MACHINE_DEP_C_SEQ_SUBS_LIST=etime.o

# Use the ABINIT default libraries.
# For dynamical link, uncomment this line
#LIBS= $(LAPACK) $(BLAS) $(NETCDF)

NC_CC=cc
NC_FC=pgf77
NC_F90=pgf90
NC_CPPFLAGS=-DpgiFortran

####################################################################
# For the parallel version

# Compiler flags and definitions
FFLAGS_PAR= $(FFLAGS) -I/usr/local/mpich2/include
# List of machine-dependent routines
MACHINE_DEP_C_PAR_SUBS_LIST=etime.par

# Location of the MPI library
MPI_A=/usr/local/mpich2/lib/libmpich.a /usr/local/mpich2/lib/libfmpich.a

# Include blas, lapack, and any other libraries here
LIBS_PAR=$(LIBS) $(MPI_A)

# Command for automatic tests in parallel (optional)
COMMAND_PAR=/usr/local/mpich2/bin/mpirun -np 2 -machinefile
dummy.pcpm.ucl.ac.be:2 ../../abinip



Archive powered by MHonArc 2.6.16.

Top of Page