Skip to content

Build instructions

Jan Stephan edited this page Dec 18, 2016 · 10 revisions

Cloning

Clone the necessary repositories:

git clone https://github.com/HZDR-FWDF/GLADOS.git
git clone https://github.com/HZDR-FWDF/PARIS.git

Branch selection

We strongly recommend the usage of the latest stable branch (currently 0.2). Issue the following commands from the top-level directory (i.e. the directory in which the GLADOS and PARIS directories reside):

cd GLADOS
git checkout 0.2
cd ../PARIS
git checkout 0.2

Dependencies

In order to build PARIS you need to satisfy the following package dependencies:

  • CMake >= 3.5
  • CUDA 8.0
  • a CUDA 8.0 compatible C++ compiler with C++11 support (List)
  • cuFFT 8.0
  • Boost.System
  • Boost.Log
  • Boost.Program_options

Build preparations

Before building you need to ensure that the generated GPU code matches your target architecture. Edit the top-level CMakeLists.txt and look for the following lines:

-gencode arch=compute_61,code=sm_61;
-gencode arch=compute_35,code=sm_35;

Most users can delete the second line as they typically won't utilize two different GPUs. The correct values can be looked up here (just leave out the dot). For example, an adaption for the GeForce 940M looks like this:

-gencode arch=compute_50,code=sm_50;

Building

Issue the following commands in the PARIS directory:

mkdir build
cd build
cmake -DGLADOS_INCLUDE_PATH=/absolute/path/to/glados/include -DCMAKE_BUILD_TYPE=Release ..
make

Note that GLADOS_INCLUDE_PATH needs to point to the include directory in the GLADOS directory! If everything went well, the executable will be in PARIS/build/Release.

Clone this wiki locally