Skip to content
Cameron Smith edited this page Aug 12, 2016 · 1 revision

=========== Zlib

CC=mpicc CFLAGS=-O3 ./configure --64 --prefix=/gpfs/u/home/PGES/PGESjuha/barn/projects/TPL_INSTALL make make install

=========== hdf5

./configure CC=mpicc FC=mpif90 CXX=mpicxx
CXXFLAGS="-O3 -fPIC" CFLAGS="-O3 -fPIC" FCFLAGS="-O3 -fPIC"
--enable-parallel
--with-zlib=/gpfs/u/home/PGES/PGESjuha/barn/projects/TPL_INSTALL
--prefix=/gpfs/u/home/PGES/PGESjuha/barn/projects/TPL_INSTALL make -j 8 make install

============ netcdf

export myprefix=/gpfs/u/home/PGES/PGESjuha/barn/projects/TPL_INSTALL ./configure CC=mpicc FC=mpifort CXX=mpicxx
CXXFLAGS="-fPIC -I${myprefix}/include -O3 -march=native"
CFLAGS="-fPIC -I${myprefix}/include -O3 -march=native"
LDFLAGS="-fPIC -L${myprefix}/lib -O3 -march=native"
FCFLAGS="-fPIC -I${myprefix}/include -O3 -march=native"
--prefix=${myprefix} --disable-doxygen --enable-netcdf4

make -j 8 make install

=========== boost

echo "using gcc : 4.7.4_1 : /gpfs/u/software/amd64-rhel6/compilers/gcc/4.7.4_1/bin/g++ ;" \

./tools/build/v2/user-config.jam echo "using mpi : /gpfs/u/software/amd64-rhel6/mpi/openmpi/1.8.1_1/gcc-4.7.4_1/bin/mpicxx ;"
./tools/build/v2/user-config.jam ./bootstrap.sh
--with-libraries=signals,regex,filesystem,system,mpi,serialization,thread,program_options,exception
--prefix=/gpfs/u/home/PGES/PGESjuha/barn/projects/TPL_INSTALL

./b2 -j 8 ./b2 -j 8 install

======================= boost in Intel Cluster

echo "using gcc : 4.7.4_1 : /gpfs/u/software/amd64-rhel6/compilers/gcc/4.7.4_1/bin/g++ ;" \

./tools/build/v2/user-config.jam echo "using mpi : /gpfs/u/software/amd64-rhel6/mpi/openmpi/1.8.1_1/gcc-4.7.4_1/bin/mpicxx ;"
./tools/build/v2/user-config.jam ./bootstrap.sh
--with-libraries=signals,regex,filesystem,system,mpi,serialization,thread,program_options,exception
--prefix=/gpfs/u/home/PGES/PGESjuha/barn/projects/TPL_INSTALL

./b2 -j 8 ./b2 -j 8 install

============ parmetis

cd build

export metis=/gpfs/u/home/PGES/PGESjuha/scratch/tpl/parmetis-4.0.3/metis cmake
-DCMAKE_INSTALL_PREFIX=/gpfs/u/home/PGES/PGESjuha/barn/projects/TPL_INSTALL
-DMETIS_PATH=$metis
-DGKLIB_PATH=$metis/GKlib
-DCMAKE_C_COMPILER=mpicc
-DCMAKE_CXX_COMPILER=mpicxx
..

make -j 8 make install

cp libmetis/libmetis.a /gpfs/u/home/PGES/PGESjuha/barn/projects/TPL_INSTALL/lib cp $metis/include/metis.h /gpfs/u/home/PGES/PGESjuha/barn/projects/TPL_INSTALL/include

============ lapack

mkdir build

ccmake -DCMAKE_INSTALL_PREFIX=/gpfs/u/home/PGES/PGESjuha/barn/projects/TPL_INSTALL .. c c g

make -j 8 make install

================= SuperLU_Dist

############################################################################

Program: SuperLU_DIST

Module: make.inc

Purpose: Top-level Definitions

Creation date: February 4, 1999 version alpha

Modified: September 1, 1999 version 1.0

March 15, 2003 version 2.0

November 1, 2007 version 2.1

September 1, 2011 version 3.0

############################################################################

The machine (platform) identifier to append to the library names

edison at NERSC

PLAT = _linux

The name of the libraries to be created/linked to

DSuperLUroot = /gpfs/u/home/PGES/PGESjuha/scratch/tpl/SuperLU_DIST_4.2 DSUPERLULIB = $(DSuperLUroot)/lib/libsuperlu_dist_4.2.a

BLASDEF = -DUSE_VENDOR_BLAS BLASLIB = /gpfs/u/home/PGES/PGESjuha/barn/projects/TPL_INSTALL/lib/libblas.a /gpfs/u/home/PGES/PGESjuha/barn/projects/TPL_INSTALL/lib/liblapack.a

############################################################################

parmetis 4.x.x, 32-bit integer

PARMETIS_DIR := /gpfs/u/home/PGES/PGESjuha/barn/projects/TPL_INSTALL/include

parmetis 4.x.x, 64-bit integer

PARMETIS_DIR := ${HOME}/Edison/lib/parmetis-4.0.3_64

METISLIB := -L/gpfs/u/home/PGES/PGESjuha/barn/projects/TPL_INSTALL/lib -lmetis PARMETISLIB := -L/gpfs/u/home/PGES/PGESjuha/barn/projects/TPL_INSTALL/lib -lparmetis I_PARMETIS := -I${PARMETIS_DIR} ############################################################################

Define the required Fortran libraries, if you use C compiler to link

FLIBS = -lpgf90 -lpgf90_rpm1 ## for PGI compiler

#FLIBS = -lifport -lifcore ## for Intel compiler

Define all the libraries

LIBS = $(DSUPERLULIB) $(BLASLIB) $(PARMETISLIB) $(METISLIB) $(FLIBS)

The archiver and the flag(s) to use when building archive (library)

If your system has no ranlib, set RANLIB = echo.

ARCH = ar ARCHFLAGS = cr RANLIB = ranlib

############################################################################

C compiler setup

CC = mpicc -fPIC

CFLAGS should be set to be the C flags that include optimization

CFLAGS = -O3 -DNDEBUG -fPIC -DUSE_VENDOR_BLAS -DDEBUGlevel=0 -DPRNTlevel=0 -std=c99
$(I_PARMETIS) -DDEBUGlevel=0 -DPRNTlevel=0 -DPROFlevel=0 \

uncomment the following to use 64-bit integer

CFLAGS += -D_LONGINT

NOOPTS should be set to be the C flags that turn off any optimization

NOOPTS = -O0 -std=c99 ############################################################################

FORTRAN compiler setup

FORTRAN = mpif90 #F90FLAGS = -fast #-Mipa=fast,safe

uncomment the following to use 64-bit integer

F90FLAGS += -i8

############################################################################ LOADER = $(CC) LOADOPTS = -Wl,-rpath,/gpfs/u/home/PGES/PGESjuha/scratch/tpl/SuperLU_DIST_4.2/lib -fPIC ############################################################################

C preprocessor defs for compilation (-DNoChange, -DAdd_, or -DUpCase)

Need follow the convention of how C calls a Fortran routine.

CDEFS = -DAdd_

cp SRC/*.h ~/barn/projects/TPL_INSTALL/SuperLU_DIST_4.2/include/ cp lib/libsuperlu_dist_4.2.a ~/barn/projects/TPL_INSTALL/SuperLU_DIST_4.2/lib/

===================== INSTALL NO SHARE LIB

=========== Zlib

CC=mpicc CFLAGS=-O3 ./configure --64 --static --prefix=/gpfs/u/home/PGES/PGESjuha/barn/projects/TPL_INSTALL make make install

=========== hdf5

./configure CC=mpicc FC=mpif90 CXX=mpicxx
CXXFLAGS="-O3" CFLAGS="-O3" FCFLAGS="-O3"
--enable-parallel --enable-shared=no
--with-zlib=/gpfs/u/home/PGES/PGESjuha/barn/projects/TPL_INSTALL
--prefix=/gpfs/u/home/PGES/PGESjuha/barn/projects/TPL_INSTALL make -j 8 make install

============ netcdf

export myprefix=/gpfs/u/home/PGES/PGESjuha/barn/projects/TPL_INSTALL cmake
-DCMAKE_C_COMPILER=mpicc
-DCMAKE_C_FLAGS="-I${myprefix}/include -O2"
-DCMAKE_EXE_LINKER_FLAGS="-L${myprefix}/lib -O2"
-DCMAKE_INSTALL_PREFIX=${myprefix}
-DENABLE_DAP=OFF -DBUILD_SHARED_LIBS=OFF -DENABLE_FSYNC=OFF -DENABLE_CDMREMOTE=OFF
-DENABLE_DOXYGEN=OFF -DENABLE_NETCDF_4=ON -DCMAKE_BUILD_TYPE=RELEASE -DENABLE_EXAMPLES=OFF
-DENABLE_TESTS=OFF -DCMAKE_SKIP_INSTALL_RPATH=ON
-DZLIB_INCLUDE_DIRS=${myprefix}/include
-DZLIB_LIBRARY=${myprefix}/lib/libz.a
-DBUILD_UTILITIES=OFF
..

make -j 8 make install

=========== boost

echo "using gcc : 4.7.2 : /bgsys/drivers/ppcfloor/gnu-linux-4.7.2/bin/powerpc64-bgq-linux-g++ ;" \

./tools/build/v2/user-config.jam echo "using mpi : /bgsys/drivers/ppcfloor/comm/gcc/bin/mpicxx ;"
./tools/build/v2/user-config.jam ./bootstrap.sh
--with-libraries=signals,regex,filesystem,system,mpi,serialization,thread,program_options,exception
--prefix=/gpfs/u/home/PGES/PGESjuha/barn/projects/TPL_INSTALL

./b2 -j 8 ./b2 -j 8 install

======================= boost in Intel Cluster

echo "using gcc : 4.7.4_1 : /gpfs/u/software/amd64-rhel6/compilers/gcc/4.7.4_1/bin/g++ ;" \

./tools/build/v2/user-config.jam echo "using mpi : /gpfs/u/software/amd64-rhel6/mpi/openmpi/1.8.1_1/gcc-4.7.4_1/bin/mpicxx ;"
./tools/build/v2/user-config.jam ./bootstrap.sh
--with-libraries=signals,regex,filesystem,system,mpi,serialization,thread,program_options,exception
--prefix=/gpfs/u/home/PGES/PGESjuha/barn/projects/TPL_INSTALL

./b2 -j 8 ./b2 -j 8 install

============ parmetis

cd build

export metis=/gpfs/u/home/PGES/PGESjuha/scratch/tpl/parmetis-4.0.3/metis cmake
-DCMAKE_INSTALL_PREFIX=/gpfs/u/home/PGES/PGESjuha/barn/projects/TPL_INSTALL
-DMETIS_PATH=$metis
-DGKLIB_PATH=$metis/GKlib
-DCMAKE_C_COMPILER=mpicc
-DCMAKE_CXX_COMPILER=mpicxx
..

make -j 8 make install

cp libmetis/libmetis.a /gpfs/u/home/PGES/PGESjuha/barn/projects/TPL_INSTALL/lib cp $metis/include/metis.h /gpfs/u/home/PGES/PGESjuha/barn/projects/TPL_INSTALL/include

============ lapack

mkdir build

ccmake -DCMAKE_INSTALL_PREFIX=/gpfs/u/home/PGES/PGESjuha/barn/projects/TPL_INSTALL .. c g

make -j 8 make install

================= SuperLU_Dist

############################################################################

Program: SuperLU_DIST

Module: make.inc

Purpose: Top-level Definitions

Creation date: February 4, 1999 version alpha

Modified: September 1, 1999 version 1.0

March 15, 2003 version 2.0

November 1, 2007 version 2.1

September 1, 2011 version 3.0

############################################################################

The machine (platform) identifier to append to the library names

edison at NERSC

PLAT = _linux

The name of the libraries to be created/linked to

DSuperLUroot = /gpfs/u/home/PGES/PGESjuha/scratch/tpl/SuperLU_DIST_4.2 DSUPERLULIB = $(DSuperLUroot)/lib/libsuperlu_dist_4.2.a

BLASDEF = -DUSE_VENDOR_BLAS BLASLIB = /gpfs/u/home/PGES/PGESjuha/barn/projects/TPL_INSTALL/lib/libblas.a /gpfs/u/home/PGES/PGESjuha/barn/projects/TPL_INSTALL/lib/liblapack.a

############################################################################

parmetis 4.x.x, 32-bit integer

PARMETIS_DIR := /gpfs/u/home/PGES/PGESjuha/barn/projects/TPL_INSTALL/include

parmetis 4.x.x, 64-bit integer

PARMETIS_DIR := ${HOME}/Edison/lib/parmetis-4.0.3_64

METISLIB := -L/gpfs/u/home/PGES/PGESjuha/barn/projects/TPL_INSTALL/lib -lmetis PARMETISLIB := -L/gpfs/u/home/PGES/PGESjuha/barn/projects/TPL_INSTALL/lib -lparmetis I_PARMETIS := -I${PARMETIS_DIR} ############################################################################

Define the required Fortran libraries, if you use C compiler to link

FLIBS = -lpgf90 -lpgf90_rpm1 ## for PGI compiler

#FLIBS = -lifport -lifcore ## for Intel compiler

Define all the libraries

LIBS = $(DSUPERLULIB) $(BLASLIB) $(PARMETISLIB) $(METISLIB) $(FLIBS)

The archiver and the flag(s) to use when building archive (library)

If your system has no ranlib, set RANLIB = echo.

ARCH = ar ARCHFLAGS = cr RANLIB = ranlib

############################################################################

C compiler setup

CC = mpicc -fPIC

CFLAGS should be set to be the C flags that include optimization

CFLAGS = -O3 -DNDEBUG -fPIC -DUSE_VENDOR_BLAS -DDEBUGlevel=0 -DPRNTlevel=0 -std=c99
$(I_PARMETIS) -DDEBUGlevel=0 -DPRNTlevel=0 -DPROFlevel=0 \

uncomment the following to use 64-bit integer

CFLAGS += -D_LONGINT

NOOPTS should be set to be the C flags that turn off any optimization

NOOPTS = -O0 -std=c99 ############################################################################

FORTRAN compiler setup

FORTRAN = mpif90 #F90FLAGS = -fast #-Mipa=fast,safe

uncomment the following to use 64-bit integer

F90FLAGS += -i8

############################################################################ LOADER = $(CC) LOADOPTS = -Wl,-rpath,/gpfs/u/home/PGES/PGESjuha/scratch/tpl/SuperLU_DIST_4.2/lib -fPIC ############################################################################

C preprocessor defs for compilation (-DNoChange, -DAdd_, or -DUpCase)

Need follow the convention of how C calls a Fortran routine.

CDEFS = -DAdd_

Clone this wiki locally