Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 2.03 KB

install.rst

File metadata and controls

23 lines (19 loc) · 2.03 KB

Installation

  1. Prerequisites:
  1. Source: Download the latest stable release and extract the files. You can also clone the git repository and use the latest commit on the master branch to get the latest changes.
  2. Compiler: You need a C++ compiler with C++14 standard support (e.g. g++ 5.0 or later)
  3. BLAS/OpenBLAS/MKL: You can use BLAS+LAPACK for the matrix operations inside the slabcc but it is highly recommended to use one of the high performance replacements, e.g., the OpenBLAS/MKL instead. If you don't have OpenBLAS installed on your system, follow the guide on the OpenBLAS website. Please refer to the Armadillo documentation for linking to other BLAS replacements.
  4. FFTW: If you don't have FFTW installed on your system, follow the guide on the FFTW website. Alternatively, you can use the FFTW interface of the MKL.
  1. Configuration: Set compilation parameters through environment variables.
  1. $CC: C compiler (default: gcc)
  2. $CXX: C++ compiler (default: g++)
  3. $FFTW_HOME: path to FFTW library home
  4. $FFTW_LIB_FLAG: FFTW library flag (default: -lfftw3)
  5. $BLAS_HOME: path to BLAS library home
  6. $BLAS_LIB_FLAG: BLAS library flags (default: -lblas -llapack -lpthread)
  7. $EXTRA_FLAGS: extra compiler flags for CC and CXX
  8. $LD_EXTRA_FLAGS: extra linker flags
  1. Compilation: Run the command make in the bin/ to compile the slabcc.
  2. Cleanup: You can run make clean to remove the compiled objects. make distclean additionally removes all the compiled objects of the bundled external libraries.