Skip to content

Building on Titan

Urs Hähner edited this page Nov 30, 2018 · 1 revision

How to build DCA++ on ORNL's Titan supercomputer

  1. Clone the DCA++ repository to obtain the latest version of the master branch:

     $ git clone https://github.com/CompFUSE/DCA.git dca_source
    
  2. Load all required modules:

     $ source dca_source/build-aux/titan_load_modules.sh
    
  3. Create a clean build directory and change to it:

     $ mkdir build && cd build
    
  4. Use CMake to configure the build and generate the build files:

     $ cmake -C ../dca_source/build-aux/titan.cmake -DCMAKE_BUILD_TYPE=Release ../dca_source
    

    Note that setting CMAKE_BUILD_TYPE to Release adds compiler optimization flags that we want for production builds.

  5. Compile the applications:

     $ make -j 8