General instructions are for GNU compiler and OpenMPI. For using other compiler/MPI use corresponding entries from the table below.

Compiler MPI
GNU gcc g++ mpicc mpicxx Open-MPI
Intel icc icpc mpiicc mpiicpc Intel-MPI
IBM bgxlc bgxlc++ mpixlcc mpixlcxx IBM-MPI

CMake : http://www.cmake.org/cmake/resources/software.html

CC=gcc CXX=g++ ./configure --prefix=$HOME/local
make install

Blitz++ : http://sourceforge.net/projects/blitz/ Use version 0.10

CC=gcc CXX=g++ ./configure --prefix=$HOME/local
make install

YAML-cpp : http://code.google.com/p/yaml-cpp/downloads/list [Download yamp-ccp version 0.3.0 , higher versions are presently not compatible.]

CC=gcc CXX=g++ cmake -DCMAKE_INSTALL_PREFIX=$HOME/local
make install

MPICH : https://www.mpich.org/downloads/
For Mac OSX additional arguments need to be supplied to configure.
64bit: CFLAGS=-m64 CXXFLAGS=-m64 FFLAGS=-m64 FCFLAGS=-m64
32bit: CFLAGS=-m32 CXXFLAGS=-m32 FFLAGS=-m32 FCFLAGS=-m32

CC=gcc CXX=g++ ./configure --prefix=$HOME/local
make install

Environment Variables : For using the installed MPI to compile further libraries these environment variables need to be set.

export PATH=$HOME/local/bin:$PATH
export LD_LIBRARY_PATH=$HOME/local/lib:$LD_LIBRARY_PATH

FFTK : Download FFTK library from here

FFTW : http://www.fftw.org/download.html

fftw – double

MPICC=mpicc CC=mpicc CXX=mpicxx ./configure --prefix=$HOME/local --enable-mpi --enable-openmp
make install

fftw – float

MPICC=mpicc CC=mpicc CXX=mpicxx ./configure --prefix=$HOME/local --enable-mpi --enable-float --enable-openmp
make install

NOTE: for intel compilers use

MPICXX=mpiicpc MPICC=mpiicc CC=mpiicc CXX=mpiicpc ./configure --prefix=$HOME/local --enable-mpi --enable-openmp

HDF5 : http://www.hdfgroup.org/HDF5/release/obtain5.html

CC=mpicc CXX=mpicxx ./configure --prefix=$HOME/local --enable-parallel --without-zlib
make install

h5si : Note–Only for new tarang

CXX=mpicxx cmake -DCMAKE_INSTALL_PREFIX=$HOME/local
make
make install

Environment Variables : The following environment variables need to be set before compiling tarang. (You may append these lines to $HOME/.bashrc)

export PATH=$HOME/local/bin:$PATH
export PKG_CONFIG_DISABLE_UNINSTALLED=true
export PKG_CONFIG_PATH=$HOME/local/lib/pkgconfig:$PKG_CONFIG_PATH
export HDF5_ROOT=$HOME/local
export CPATH=$HOME/local/include/:$CPATH
export LD_LIBRARY_PATH=$HOME/local/lib:$LD_LIBRARY_PATH
export LIBRARY_PATH=$HOME/local/lib:$LIBRARY_PATH
export MANPATH=$HOME/local/share/man/:$MANPATH

To compile Tarang Unzip tarang. Make a directory build just outside tarang folder and cd to it. If the above environment variables are not set, open trunk/CMakeLists.txt and change SET(INCLUDE_DIRS …) and SET(LIBRARY_DIRS …) as per your systems mpi and CUDA (If using GPU versions of the code) and pass argument ‘-DFIND_LIBRARIES=OFF’ to cmake.

CXX=mpicxx cmake ../tarang/trunk/
make

To setup Tarang using eclipseMake build directory in the tarang folder (has to be a sibling of trunk as required by Eclipse CDT4 CMake Generator).

CXX=mpicxx cmake ../trunk/ -DCMAKE_BUILD_TYPE=DEBUG -G"Eclipse CDT4 - Unix Makefiles"