Skip to content

Installation: External Libraries

Hsi-Yu Schive edited this page Dec 17, 2017 · 8 revisions

Library Paths

Set the following library paths in the Makefile to help compiler locate them (if necessary):

CUDA_PATH    :=
FFTW_PATH    :=
MPI_PATH     :=
HDF5_PATH    :=
GRACKLE_PATH :=
GSL_PATH     :=

Only the paths of libraries being used need to be set. In addition, it is usually unnecessary to set the paths that have been embedded into the compiling command (e.g., when using CC and module load in a Cray computer system).

Library Configurations

FFTW

GAMER uses FFTW2 for the root-level Poisson solver. It must be configured with floating-point type prefix and MPI support using ./configure --enable-mpi --enable-type-prefix. Here is an example installation script using the GNU compiler:

export FFTW_PATH=PATH_TO_INSTALL_YOUR_FFTW
export CC=gcc
export F77=gfortran
export CFLAGS=-O3
export FFLAGS=-O3

make clean
./configure --enable-mpi --enable-type-prefix --prefix $FFTW_PATH --enable-float
make
make install

make clean
./configure --enable-mpi --enable-type-prefix --prefix $FFTW_PATH
make
make install

GRACKLE

GAMER uses GRACKLE for the chemistry and radiative processes. It must be configured with a consistent floating-point accuracy as GAMER using

> make precision-{32,64}

Specifically, configure GRACKLE with make precision-64/32 when compiling GAMER with/without the option FLOAT8, respectively.

In addition, when enabling OpenMP in GAMER (i.e., with the compile-time option OPENMP), GRACKLE must be configured with OpenMP support as well using

> make omp-on

Links

Clone this wiki locally