Re: [AMBER] PMEMD installation with gfortran

From: Jason Swails <jason.swails.gmail.com>
Date: Tue, 11 May 2010 19:10:35 -0400

Hello,

First thing to always check:

all bugfixes have been downloaded and applied. Then try recompiling (but
make clean before every fresh try!). If these don't work, see my advice
below:

I would probably opt for using the compiler wrappers (as long as you know
they've been properly installed with your MPI). Doing this, you can get rid
of everything in front of MPI_INCLUDE and MPI_LIBS (since mpif90 will take
care of that for you).

Then, change F90 = gfortran to F90 = mpif90 and LOAD = gfortran to LOAD =
mpif90 . See the comments below for clarification:

On Tue, May 11, 2010 at 6:13 PM, Senthil Natesan <sen.natesan.yahoo.com>wrote:

> Dear Amber Users,
>
> I am installing PMEMD (Amber 10) on RHEL 5.3 (x86_64) using gfortran and
> mvapichand got some errors. I am displaying my config.h file here and
> please see the attachment for error output.
>
> config.h:
> -----------------------------
> MATH_DEFINES =
> MATH_LIBS =
> FFT_DEFINES = -DPUBFFT
> FFT_INCLUDE =
> FFT_LIBS =
> NETCDF_HOME =
> NETCDF_DEFINES =
> NETCDF_MOD =
> NETCDF_LIBS =
> MPI_HOME = /usr/mpi/gcc/mvapich-1.1.0
> MPI_LIBDIR2 = /usr/mpi/gcc/mvapich-1.1.0/lib/shared
> MPI_DEFINES = -DMPI
> MPI_INCLUDE = -I$(MPI_HOME)/include
>

change to

MPI_INCLUDE =


> MPI_LIBDIR = $(MPI_HOME)/lib
> MPI_LIBS = -L$(MPI_LIBDIR) -lmpich -L$(MPI_LIBDIR2) -lmtl_common -lvapi
> -lmosal -lmpga -lpthread
>

change to

MPI_LIBS =


> DIRFRC_DEFINES = -DDIRFRC_EFS -DDIRFRC_COMTRANS -DDIRFRC_NOVEC
> CPP = /lib/cpp
> CPPFLAGS = -traditional -P
> F90_DEFINES = -DFFTLOADBAL_2PROC
>
> F90 = gfortran
>

change to

F90 = mpif90


> MODULE_SUFFIX = mod
> F90FLAGS = -c
> F90_OPT_DBG = -g -ftrace=full
> F90_OPT_LO = -O0
> F90_OPT_MED = -O2
> F90_OPT_HI = -O3
> F90_OPT_DFLT = $(F90_OPT_HI)
> CC = gcc
> CFLAGS =
>
> LOAD = gfortran
>

change to

LOAD = mpif90


> LOADFLAGS =
> LOADLIBS =
> -------------------------------------------------
>
> Any suggestions would be very helpful. Thanks,
>
> Senthil Natesan
>

However, a simple check to make sure that mpif90 is invoking the correct
compiler is:

mpif90 -show

This should show you the include directories and library directories that
it's providing as well as the specific libraries it's using.

Hope this helps,
Jason

-- 
Jason M. Swails
Quantum Theory Project,
University of Florida
Ph.D. Graduate Student
352-392-4032
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Tue May 11 2010 - 16:30:04 PDT
Custom Search