More installation tweaking

git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@105 c92efa57-630b-4861-b058-cf58834340f0
This commit is contained in:
giannozz 2003-03-01 16:28:38 +00:00
parent 1802a8e777
commit b371f3eea6
5 changed files with 56 additions and 173 deletions

View File

@ -3,26 +3,28 @@
# Based on info from N. Marzari and B.R. Sahu
# Edit according to your needs
#
# add -DMKL if using the Intel Mathematical Kernel Library
# add -D__MKL if using the Intel Mathematical Kernel Library
# Add -DADD_BLAS_ONE_UNDERSCORE if your blas/lapack library names contain
# two underscores at the end
# Define FFTW library names with one underscore less than they have in
# the library (one underscore is added by the compiler)
#
CPPFLAGS = -I$(OSHOME)/include/ -D__LINUX -D__MKL -D__PARA -D__MPI -D__FFTW \
-D"FFTWND_F77_ONE=fftwnd_f77_one" \
-D"FFTW3D_F77_CREATE_PLAN=fftw3d_f77_create_plan" \
-D"FFTW_F77_CREATE_PLAN=fftw_f77_create_plan" \
-D"FFTW_F77=fftw_f77"
CPPFLAGS = -I$(OSHOME)/include/ -D__LINUX -D__INTEL -D__MKL -D__FFTW \
-D__PARA -D__MPI \
-D"FFTWND_F77_ONE=fftwnd_f77_one_" \
-D"FFTW3D_F77_CREATE_PLAN=fftw3d_f77_create_plan_" \
-D"FFTW_F77=fftw_f77_" \
-D"FFTW_F77_CREATE_PLAN=fftw_f77_create_plan_"
#
# Fortran compiler:
# Fortran compiler
#
F90 = mpif90
F77 = mpif77
CC = mpicc
#
# fortran options:
# Fortran compiler flags
#
# -Vaxlib enables the use of portability libraries (getarg
# and maybe other library calls)
# -W0 disable warnings
@ -31,10 +33,20 @@ CC = mpicc
# -tpp6 Pentium Pro, 2, 3 optimization
# -tpp7 Pentium 4 optimization
#
FFLAGS = -O2 -Vaxlib
FFLAGS = -Vaxlib -O2 -tpp6
#
F77FLAGS= $(FFLAGS)
F90FLAGS= $(FFLAGS) -fpp $(CPPFLAGS)
# Fortran90 compiler flags
#
F90FLAGS = $(FFLAGS) -fpp $(CPPFLAGS)
#
# Fortran77 compiler flags
#
F77FLAGS = $(FFLAGS)
F77FLAGS_NOOPT = -O0
#
# C compiler flags
#
CCFLAGS = $(CPPFLAGS) -O3 -fomit-frame-pointer
#
# This is needed to tell the compiler where modules are
#
@ -45,20 +57,26 @@ MODULEFLAG= -nomodule -I $(OSHOME)/Modules -I$(OSHOME)/PW I $(OSHOME)/PH
#
# Loader:
#
# The following is for Intel MKL libraries (remember -DMKL in CPPFLAGS !)
# The following is for Intel MKL libraries v. 5.1 on Pentium-3
# (remember -D__MKL in CPPFLAGS !)
# For MKL v. 5.2, add "-lguide"
# Use libmkl_p3.a for Pentium-3, libmkl_p4.a for Pentium-4 machines
# (MKL will likely not work for other CPUs like Athlon)
LIBS= -lfftw /opt/intel/mkl/lib/32/libmkl_lapack.a \
/opt/intel/mkl/lib/32/libmkl_p3.a -lpthread
/opt/intel/mkl/lib/32/libmkl_p3.a -lguide -lpthread
# The following is for Atlas optimized blas/lapack libraries
# You may not actually need -lcblas . See the manual for details
# on how to fix I/O incompatibility problems with ifc
#
# LIBS = -lfftw -L$(HOME)/Linux_ATHLON256/ -llapack -lf77blas -lcblas -latlas
#
# The following is to use blas and lapack from the source code
# MYLIB=blas_and_lapack
#
LD=$(F90)
LDFLAGS = $(OSHOME)/flib/flib.a $(LIBS)
LDFLAGS = $(OSHOME)/flib/flib.a -Vaxlib $(LIBS)
#
# ar:

View File

@ -1,98 +0,0 @@
######################################################################
# LINUX INTEL Compilers
#
# Architecture
ARCH=lnx.intel
#
######################################################################
# --- Change Variables according to your system --- #
# ** Preprocessor Macro **
# Parallel MPI
CPMACRO=-D__LINUX -D__MPI -D__PARA -D__INTEL -D__FFTW \
-D"FFTWND_F77_ONE=fftwnd_f77_one_" \
-D"FFTW3D_F77_CREATE_PLAN=fftw3d_f77_create_plan_" \
-D"FFTW_F77=fftw_f77_" \
-D"FFTW_F77_CREATE_PLAN=fftw_f77_create_plan_"
#
# Serial Code
CPMACRO=-D__LINUX -D__INTEL -D__FFTW \
-D"FFTWND_F77_ONE=fftwnd_f77_one_" \
-D"FFTW3D_F77_CREATE_PLAN=fftw3d_f77_create_plan_" \
-D"FFTW_F77=fftw_f77_" \
-D"FFTW_F77_CREATE_PLAN=fftw_f77_create_plan_"
#
# PentiumIII
CPUTYPE=-tpp6
# PentiumIV
CPUTYPE=-tpp7
#
# Module, Intel Compiler Version option
# use this for version < 7
MODULEOPT= -cl,./intel.pcl
# use this for version >= 7
# MODULEOPT= -nomodule -I $(OSHOME)/Modules -I$(OSHOME)/FPMD
#
# ** Scientific Libraries **
# Use System Lapack and blas
LAPACK= /opt/intel/mkl/lib/32/libmkl_lapack.a \
/opt/intel/mkl/lib/32/libmkl_p4.a -lguide -lpthread -lfftw
MYLIB=
# Use blas and lapack from the source code
# MYLIB=blas_and_lapack
# Use System lapack and Atlas
# ATLAS=/cineca/lib/ATLAS
# LAPACK= -L/cineca/lib/intel -llapack -L$(ATLAS) -lf77blas -latlas
#
# ** Communication Libraries **
# mpich compiled with GNU compiler
# MPICH = /usr/local/mpich/gnu/
# INCLUDE = -I/$(MPICH)/include
# LIBMPI=-L$(MPICH)/lib -lfmpich -lmpich
# LIBGM=-L/usr/gm/lib -lgm
#
# ** Include **
INCLUDEPATH=-I$(OSHOME)/include -I$(OSHOME)/clib
#
######################################################################
# *** Usually you don't need to edit variables below this line **** #
######################################################################
#
# Flag for the compilation of the fortran source files
OPTIMIZATIONS = -O2 $(CPUTYPE)
NOOPTIMIZATIONS = -O0
DEBUGFLAGS =
PREPROCESSING = -fpp $(CPMACRO)
FREEFORM = -FR
INTELFLAG = -autodouble -i4 -w -static -Vaxlib
ARCHFLAGS = -v
ARCHFLAGS =
F77FLAGS = $(ARCHFLAGS) $(INTELFLAG) $(DEBUGFLAGS) $(OPTIMIZATIONS)
F77FLAGS_NOOPT = $(ARCHFLAGS) $(INTELFLAG) $(DEBUGFLAGS) $(NOOPTIMIZATIONS)
F90FLAGS = $(PREPROCESSING) $(ARCHFLAGS) $(INTELFLAG) $(FREEFORM) $(DEBUGFLAGS) $(OPTIMIZATIONS) $(INCLUDE)
LDFLAGS = $(ARCHFLAGS) $(DEBUGFLAGS)
#
# Flag for the compilation of the c source files
CCFLAGS = $(INCLUDEPATH) $(ARCHFLAGS) $(DEBUGFLAGS) $(CPMACRO) -O3 -fomit-frame-pointer
#
# --- Preprocessor ---
CPP= /lib/cpp
CPPFLAGS=-P -C -traditional
#
AR = ar
ARFLAGS = rv
# --- Name of the fortran compiler ---
F77= ifc
F90= ifc
CC= gcc
LD= ifc
#
# --- Modules --
MODULEFLAG= $(MODULEOPT)
#
# --- Library ---
# to link -lfmpich compiled with GNU compiler
LIBS= $(LAPACK) $(LIBMPI) $(LIBGM) -Vaxlib -lm -lc
#

View File

@ -1,49 +0,0 @@
######################################################################
# CRAY T3E
#
ARCH=t3e
#
######################################################################
# --- Change Variables according to your system --- #
# ** Preprocessor Macro **
# Uncomment to use benchlib
# BENCHLIB= -L /a/acv0/bnchlib/ -l _scalar -l _vect -l _ereg
#
CPMACRO=-D__T3E -D__PARA -D__MPI
BENCHLIB=
#
######################################################################
# *** Usually you don't need to edit variables below this line **** #
######################################################################
#
# General Flags
#
# Flag for the compilation of the fortran source files
OPTIMIZATIONS = -O3 -O unroll2 -O pipeline3 -O aggress -O fusion -O bl
DEBUGFLAGS =
PREPROCESSING = -F -eZ
FREEFORM = -f free
ARCHFLAGS = -dp -Xm -M 1110
F77FLAGS = $(ARCHFLAGS) $(DEBUGFLAGS) $(OPTIMIZATIONS)
F90FLAGS = $(ARCHFLAGS) $(PREPROCESSING) $(FREEFORM) $(DEBUGFLAGS) $(OPTIMIZATIONS)
LDFLAGS = $(ARCHFLAGS)
#
# Flag for the compilation of the c source files
CCFLAGS= -O2 $(CPMACRO)
AR = ar
ARFLAGS = rv
#
# Libraries
LIBS= $(BENCHLIB)
MODULEFLAG=-p $(OSHOME)/CPV -p $(OSHOME)/Modules
#
# Name of the fortran compiler
FC= f90
F90= f90
F77= f90
LD= f90
#
#

View File

@ -1,5 +1,5 @@
#
# System-dependent Make definitions for Linux, Intel compiler (v.5-6)
# System-dependent Make definitions for Linux, Intel compiler
# Edit according to your needs
#
# add -D__MKL if using the Intel Mathematical Kernel Library
@ -8,13 +8,13 @@
# Define FFTW library names with one underscore less than they have in
# the library (one underscore is added by the compiler)
#
CPPFLAGS = -I$(OSHOME)/include/ -D__LINUX -D__INTEL -D__MKL -D__FFTW \
CPPFLAGS = -I$(OSHOME)/include/ -D__LINUX -D__INTEL -D__MKL -D__FFTW \
-D"FFTWND_F77_ONE=fftwnd_f77_one_" \
-D"FFTW3D_F77_CREATE_PLAN=fftw3d_f77_create_plan_" \
-D"FFTW_F77=fftw_f77_" \
-D"FFTW_F77_CREATE_PLAN=fftw_f77_create_plan_"
#
# Fortran compiler:
# Fortran compiler
#
F90 = ifc
F77 = ifc
@ -29,11 +29,11 @@ F77 = ifc
# -tpp6 Pentium Pro, 2, 3 optimization
# -tpp7 Pentium 4 optimization
#
FFLAGS =-Vaxlib -O2 -tpp6
FFLAGS = -Vaxlib -O2 -tpp6
#
# Fortran90 compiler flags
#
F90FLAGS= $(FFLAGS) -fpp $(CPPFLAGS)
F90FLAGS = $(FFLAGS) -fpp $(CPPFLAGS)
#
# Fortran77 compiler flags
#
@ -52,10 +52,10 @@ CCFLAGS = $(CPPFLAGS) -O3 -fomit-frame-pointer
#
# Loader:
#
# The following is for Intel MKL libraries v. 5.1 on Pentium-4
# The following is for Intel MKL libraries v. 5.1 on Pentium-3
# (remember -D__MKL in CPPFLAGS !)
# For MKL v. 5.2, add "-lguide"
# Use libmkl_p3 for Pentium-3, libmkl_p4.a for Pentium-4 machines
# Use libmkl_p3.a for Pentium-3, libmkl_p4.a for Pentium-4 machines
# (MKL will likely not work for other CPUs like Athlon)
#
LIBS= -lfftw /opt/intel/mkl/lib/32/libmkl_lapack.a \
@ -69,7 +69,7 @@ LIBS= -lfftw /opt/intel/mkl/lib/32/libmkl_lapack.a \
#
# The following is to use blas and lapack from the source code
# MYLIB=blas_and_lapack
#
LD=$(F90)
LDFLAGS = $(OSHOME)/flib/flib.a -Vaxlib $(LIBS)

View File

@ -9,23 +9,34 @@ CPP = /opt/ctl/bin/cpp
# add -D__BENCHLIB if the benchlib is installed
# remove -D__FFTW if fftw is not installed and you cannot compile it
# (you will use the fft's contained in standard t3e libraries)
#
CPPFLAGS = -I$(OSHOME)/include/ -D__T3E -D__PARA -D__MPI -D__FFTW
#
# Fortran compiler:
#
F90 = f90
F77 = f90
#
# you may need to add -Idir, where "dir" is the directory where mpif.h resides
# 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:
# -O3 -O unroll2 -O pipeline3 -O aggress -O fusion -O bl
#
FFLAGS = -em -dp -M1110
#
F77FLAGS = $(FFLAGS) -eZ
# Fortran90 compiler flags
#
F90FLAGS = $(FFLAGS) -F -eZ $(CPPFLAGS)
#
# Fortran77 compiler flags
F77FLAGS = $(FFLAGS) -eZ
#
# C compiler flags
#
CCFLAGS = $(CPPFLAGS) -O2
#
# This is needed to tell the compiler where modules are
#
MODULEFLAG= -p$(OSHOME)/Modules -p$(OSHOME)/PW -p$(OSHOME)/PH
@ -34,7 +45,8 @@ MODULEFLAG= -p$(OSHOME)/Modules -p$(OSHOME)/PW -p$(OSHOME)/PH
#
# 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
# if you use -D__BENCHLIB, load the benchlib as well :
# -l _scalar -l _vect -l _ereg
#
LD=$(F90)
LIBS = -lfftw -lmpi