Machine-dependent makefiles updated

git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2926 c92efa57-630b-4861-b058-cf58834340f0
This commit is contained in:
giannozz 2006-03-17 09:15:12 +00:00
parent 5331e5825a
commit 3f46424496
5 changed files with 77 additions and 73 deletions

71
install/Make.cray-xd1 Normal file
View File

@ -0,0 +1,71 @@
# make.sys for CRAY-XD1, enhanced version for CINECA by Carlo Cavazzoni
# Edit according to your need
# compilation rules
.SUFFIXES :
.SUFFIXES : .o .c .f .f90
.f90.o:
$(MPIF90) $(F90FLAGS) -c $<
.f.o:
$(F77) $(FFLAGS) -c $<
.c.o:
$(CC) $(CFLAGS) -c $<
CC = pgcc
MPICC = mpicc
CFLAGS = -fast -Mpreprocess -O2 -tp amd64 -fastsse $(DFLAGS) $(IFLAGS)
CPP = cpp
CPPFLAGS = -P -traditional $(DFLAGS) $(IFLAGS)
F90 = pgf90
MPIF90 = mpif90
F90FLAGS = $(FFLAGS) $(FDFLAGS) $(IFLAGS) $(MODFLAGS)
F90FLAGS_NOOPT = $(FFLAGS_NOOPT) $(FDFLAGS) $(IFLAGS) $(MODFLAGS)
F77 = pgf77
MPIF77 = mpif77
FFLAGS = -fast -r8 -Mpreprocess -O2 -tp amd64 -fastsse
FFLAGS_NOOPT = -O0
LD = mpif90
LDFLAGS =
AR = ar
ARFLAGS = ruv
RANLIB = echo
BLAS_LIBS = -L/opt/acml2.5-64bit/pgi64/lib/ -lacml
LAPACK_LIBS =
FFT_LIBS =
MPI_LIBS =
MASS_LIBS =
# -----------------------------
# application-specific settings
# See include/defs.h.README for a list of precompilation options
# (possible arguments to -D or -U) and their meaning
#DFLAGS = -D__LINUX64 -D__PGI -D__FFTW -D__USE_INTERNAL_FFTW -D__MPI -D__PARA -D__NOSMD
DFLAGS = -D__LINUX64 -D__PGI -D__FFTW -D__USE_INTERNAL_FFTW -D__MPI -D__PARA
FDFLAGS = $(DFLAGS)
IFLAGS = -I../include
MODFLAGS = -I. -I../Modules -I../PW -I../PH -I../iotk/src -I../CPV
LIBOBJS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a ../iotk/src/libiotk.a
# LIBS must contain the location of all needed external libraries
LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(FFT_LIBS) $(MPI_LIBS) $(MASS_LIBS)
# MYLIB can be one of the following (depending on LIBS):
# blas : compile the local copy of blas routines
# lapack : compile the local copy of lapack routines
# blas_and_lapack : all of the above - use this for a quick test
# or if you don't have an optimized blas/lapack library
# lapack_ibm : compile only lapack routines not present in IBM ESSL
# use this together with IBM ESSL
# lapack_t3e : compile only lapack routines not present in T3E scilib
# use this together with T3E scilib
# lapack_mkl : compile only lapack routines not present in Intel MKL
# use this together with Intel MKL
MYLIB =

View File

@ -14,9 +14,9 @@
$(CC) $(CFLAGS) -c $<
## If the mass library is available, use
# CPPFLAGS = -D__AIX,-D__MASS,-DHAS_ZHEGVX
# CPPFLAGS = -D__AIX,-D__ESSL,-D__MASS
CPPFLAGS = -D__AIX,-DHAS_ZHEGVX
CPPFLAGS = -D__AIX,-D__ESSL
# Fortran compiler:
# Use -g -C without -s in LDFLAGS for debugging

View File

@ -14,9 +14,9 @@
$(CC) $(CFLAGS) -c $<
## If the mass library is available, use
# CPPFLAGS = -D__AIX,-D__PARA,-D__MPI,-D__MASS,-DHAS_ZHEGVX
# CPPFLAGS = -D__AIX,-D__PARA,-D__MPI,-D__MASS,-D__ESSL
CPPFLAGS = -D__AIX,-D__PARA,-D__MPI,-DHAS_ZHEGVX
CPPFLAGS = -D__AIX,-D__PARA,-D__MPI,-D__ESSL
# Fortran compiler:
# Use -g -C without -s in LDFLAGS for debugging

View File

@ -46,8 +46,8 @@ MASS_LIBS =
# See include/defs.h.README for a list of precompilation options
# (possible arguments to -D or -U) and their meaning
DFLAGS = -D__MAC -D__XLF -D__FFTW -D__USE_INTERNAL_FFTW
FDFLAGS = -D__MAC,-D__XLF,-D__FFTW,-D__USE_INTERNAL_FFTW
DFLAGS = -D__MAC -D__FFTW -D__USE_INTERNAL_FFTW
FDFLAGS = -D__MAC,-D__FFTW,-D__USE_INTERNAL_FFTW
IFLAGS = -I../include
MODFLAGS = -I. -I../Modules -I../PW -I../PH -I../iotk/src

View File

@ -1,67 +0,0 @@
# System-dependent definitions for t3e using MPI
# Edit according to your needs
.SUFFIXES :
.SUFFIXES : .o .c .f .f90
.f90.o:
$(F90) $(F90FLAGS) -c $<
.f.o:
$(F77) $(FFLAGS) -c $<
.c.o:
$(CC) $(CFLAGS) -c $<
CPP = /opt/ctl/bin/cpp
# add -D__BENCHLIB to CPPFLAGS if the benchlib is installed
## Use fft routines from mathematical t3e libraries
# CPPFLAGS = -I../include -D__T3E -D__PARA -D__MPI
## Use precompiled fftw library (version <= 2.1.5, NOT v.3!)
## In this case, specify also how to load the fftw library (FFTW_LIB)
## and the path to the fftw.h include file (FFTW_INC_DIR). Example:
# FFTW_LIB = -L/usr/local/src/fftw-2.1.3/fftw/.libs -lfftw
# FFTW_INC_DIR = /usr/local/src/fftw-2.1.3/fftw
# CPPFLAGS = -D__T3E -D__PARA -D__MPI -D__FFTW -I../include \
# -I$(FFTW_INC_DIR)
# Use the local copy of fftw
CPPFLAGS = -D__T3E -D__PARA -D__MPI -D__FFTW -D__USE_INTERNAL_FFTW \
-I../include -I.
CC = cc
MPICC = cc
F90 = f90
MPIF90 = f90
F77 = f90
MPIF77 = f90
# you may need to add -Idir, where "dir"=directory where mpif.h resides
# with -M1110 flag compiler does not issue warning messages for
# the use of DOUBLE PRECISION constants in the code. (SdG)
# More aggressive optimization flags:
# FFLAGS = -O3 -O unroll2 -O pipeline3 -O aggress -O fusion -O bl -eZ
FFLAGS = -em -dp -M1110 -eZ
F90FLAGS = $(FFLAGS) -F $(CPPFLAGS) -p../Modules -p../PW -p../PH
CFLAGS = $(CPPFLAGS) -O2
# usually blas and lapack are automatically loaded
# and only fftw (if required) and mpi need to be specified
# if you use -D__BENCHLIB, load the benchlib as well :
# -l _scalar -l _vect -l _ereg
LIBS = $(FFTW_LIB) -lmpi
# this contains auxiliary routines missing in T3E lapack
MYLIB = lapack_t3e
LD = $(MPIF90)
LDFLAGS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a
AR = ar
ARFLAGS = ruv
RANLIB = echo