Commit b8e10b2f by Francois Gygi

*** empty log message ***


git-svn-id: http://qboxcode.org/svn/qb/trunk@458 cba15fb0-1239-40c8-b417-11db7ca47a34
parent 36daae2a
#-------------------------------------------------------------------------------
#
# x8664_gcc.mk
#
#-------------------------------------------------------------------------------
# $Id: pavane.mk,v 1.1 2006-07-21 17:56:50 fgygi Exp $
#
PLT=Linux_x8664
#-------------------------------------------------------------------------------
GCCDIR=/usr/lib/gcc/x86_64-redhat-linux/3.4.3
#MPIDIR=$(HOME)/software/mpich/mpich-1.2.6
MPIDIR=/opt/mpich-1.2.6
XERCESCDIR=$(HOME)/software/xerces/Linux_x8664/xerces-c-src_2_7_0
PLTOBJECTS = readTSC.o
CXX=/usr/bin/g++
LD=$(CXX)
PLTFLAGS += -DIA32 -DUSE_FFTW -DUSE_CSTDIO_LFS -D_LARGEFILE_SOURCE \
-D_FILE_OFFSET_BITS=64 -DUSE_MPI -DSCALAPACK -DADD_ \
-DAPP_NO_THREADS -DXML_USE_NO_THREADS -DUSE_XERCES
FFTWDIR=$(HOME)/software/fftw/Linux_x8664/fftw-2.1.5/fftw
#BLASDIR=$(HOME)/software/atlas/ATLAS/lib/Linux_x8664
BLASDIR=$(HOME)/software/atlas/ATLAS/lib/Linux_P4E64SSE3
INCLUDE = -I$(MPIDIR)/include -I$(FFTWDIR) -I$(XERCESCDIR)/include
CXXFLAGS= -g -D$(PLT) $(INCLUDE) $(PLTFLAGS) $(DFLAGS)
LIBPATH = -L$(GCCDIR)/lib -L$(FFTWDIR)/.libs -L/usr/X11R6/lib \
-L$(MPIDIR)/lib -L$(BLASDIR) -L/usr/lib \
-L$(XERCESCDIR)/lib -L$(HOME)/lib
LIBS = $(PLIBS) $(GCCDIR)/libg2c.a -lfftw \
-llapack -lf77blas -latlas -lm -lmpich \
$(XERCESCDIR)/lib/libxerces-c.a
LDFLAGS = $(LIBPATH) $(LIBS)
PLAT=Linux_x8664
# Blacs libraries
BLACSDBGLVL = 0
BLACSdir = $(HOME)/software/blacs/Linux_x8664/BLACS/LIB
BLACSFINIT = $(BLACSdir)/blacsF77init_MPI-$(PLAT)-$(BLACSDBGLVL).a
BLACSCINIT = $(BLACSdir)/blacsCinit_MPI-$(PLAT)-$(BLACSDBGLVL).a
BLACSLIB = $(BLACSdir)/blacs_MPI-$(PLAT)-$(BLACSDBGLVL).a
CBLACSLIB = $(BLACSCINIT) $(BLACSLIB) $(BLACSCINIT)
FBLACSLIB = $(BLACSFINIT) $(BLACSLIB) $(BLACSFINIT)
# Scalapack libraries
SCALAPACK_DIR = $(HOME)/software/scalapack/Linux_x8664/SCALAPACK
#PBLASLIB = $(SCALAPACK_DIR)/pblas_$(PLAT).a
SCALAPACKLIB = $(SCALAPACK_DIR)/libscalapack.a
#TOOLSLIB = $(SCALAPACK_DIR)/tools_$(PLAT).a
#REDISTLIB = $(SCALAPACK_DIR)/redist_$(PLAT).a
LAPACKLIB = -llapack
BLASLIB = -lf77blasf -latlas
# Parallel libraries
#PLIBS = $(SCALAPACKLIB) $(PBLASLIB) $(TOOLSLIB) $(REDISTLIB) $(CBLACSLIB)
PLIBS = $(SCALAPACKLIB) $(CBLACSLIB)
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
#
# x8664_gcc.mk
#
#-------------------------------------------------------------------------------
# $Id: x8664_gcc.mk,v 1.1 2006-07-21 17:56:50 fgygi Exp $
#
PLT=Linux_x8664
#-------------------------------------------------------------------------------
GCCDIR=/usr/lib/gcc-lib/x86_64-redhat-linux/3.2.3
#MPIDIR=$(HOME)/software/mpich/mpich-1.2.6
MPIDIR=/opt/mpich-1.2.6
XERCESCDIR=$(HOME)/software/xml/Linux_x8664/xerces-c-src_2_5_0
PLTOBJECTS = readTSC.o
CXX=/usr/bin/g++
LD=$(CXX)
PLTFLAGS += -DIA32 -DUSE_FFTW -DUSE_CSTDIO_LFS -D_LARGEFILE_SOURCE \
-D_FILE_OFFSET_BITS=64 -DUSE_MPI -DSCALAPACK -DADD_ \
-DAPP_NO_THREADS -DXML_USE_NO_THREADS -DUSE_XERCES
FFTWDIR=$(HOME)/software/fftw/Linux_x8664/fftw-2.1.3/fftw
BLASDIR=$(HOME)/software/atlas/ATLAS/lib/Linux_P4E64SSE3
INCLUDE = -I$(MPIDIR)/include -I$(FFTWDIR) -I$(XERCESCDIR)/include
CXXFLAGS= -g -D$(PLT) $(INCLUDE) $(PLTFLAGS) $(DFLAGS)
LIBPATH = -L$(GCCDIR)/lib -L$(FFTWDIR)/.libs -L/usr/X11R6/lib \
-L$(MPIDIR)/lib -L$(BLASDIR) -L/usr/lib \
-L$(XERCESCDIR)/lib -L$(HOME)/lib
LIBS = $(PLIBS) $(GCCDIR)/libg2c.a -lfftw \
-llapack -lf77blas -latlas -lm -lmpich \
$(XERCESCDIR)/lib/libxerces-c.a
LDFLAGS = $(LIBPATH) $(LIBS)
PLAT=Linux_x8664
# Blacs libraries
BLACSDBGLVL = 0
BLACSdir = $(HOME)/software/blacs/Linux_x8664/BLACS/LIB
BLACSFINIT = $(BLACSdir)/blacsF77init_MPI-$(PLAT)-$(BLACSDBGLVL).a
BLACSCINIT = $(BLACSdir)/blacsCinit_MPI-$(PLAT)-$(BLACSDBGLVL).a
BLACSLIB = $(BLACSdir)/blacs_MPI-$(PLAT)-$(BLACSDBGLVL).a
CBLACSLIB = $(BLACSCINIT) $(BLACSLIB) $(BLACSCINIT)
FBLACSLIB = $(BLACSFINIT) $(BLACSLIB) $(BLACSFINIT)
# Scalapack libraries
SCALAPACK_DIR = $(HOME)/software/scalapack/Linux_x8664/SCALAPACK
#PBLASLIB = $(SCALAPACK_DIR)/pblas_$(PLAT).a
SCALAPACKLIB = $(SCALAPACK_DIR)/libscalapack.a
#TOOLSLIB = $(SCALAPACK_DIR)/tools_$(PLAT).a
#REDISTLIB = $(SCALAPACK_DIR)/redist_$(PLAT).a
LAPACKLIB = -llapack
BLASLIB = -lf77blasf -latlas
# Parallel libraries
#PLIBS = $(SCALAPACKLIB) $(PBLASLIB) $(TOOLSLIB) $(REDISTLIB) $(CBLACSLIB)
PLIBS = $(SCALAPACKLIB) $(CBLACSLIB)
#-------------------------------------------------------------------------------
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment