Skip to content

Development Quick Start

Kelly Thompson edited this page Jun 21, 2016 · 1 revision

Obtaining the source code

To clone draco (read only access)

$ git clone https://github.com/losalamos/Draco.git

Compiling

Prerequisites:

  • cmake-3.5 or later
    • cmake must be in your PATH
  • A modern C++ compiler (g++, icpc, pgCC, clang++, cl)
  • MPI (openMPI, mpich)
    • mpiexec must be in your PATH
  • Random123
    • export RANDOM123_INC_DIR=/some/path/Random123-1.08/include
  • Gnu Scientific Library
    • gsl-config must be in your PATH
  • python 2X

Only needed for testing:

  • numdiff
    • numdiff must be in your PATH

Configure:

  • Use a separate build directory
    $ mkdir build
    $ cmake ../Draco.git
  • For Cray PrgEnv, you need to prime the CMakeCache.txt
    $ cmake -C ../Draco.git/config/CracyConfig.cmake ../Draco.git

Optional components:

  • Additional libraries will be built if certain features are available in the build environment:
    • lapack_wrap will be built if LAPACK or equivalent is available.
    • cdi_eospac will be built if LANL's libeospac is available.
    • device will be built if the CUDA toolkit is available and the build machine has a GPU.
    • plot2D will be built if the Grace headers and library are found.

Build:

   $ make

Test:

   $ ctest

Install:

   $ make install

Clone this wiki locally