Installation
Docker
A Docker image including the latest version of SOM as well as other TRIQS applications is available here.
Compiling SOM from source
Prerequisites
The TRIQS toolbox version 3.3.x
(see TRIQS installation instructions).
In the following, we will assume that it is installed in the directory
path_to_triqs
.
Installation steps
Download the source code of the latest stable version by cloning the
krivenko/som
repository from GitHub:
$ git clone -b 2.1.0 https://github.com/krivenko/som.git som.src
Create and move to a new directory where you will compile the code:
$ mkdir som.build && cd som.build
Ensure that your shell contains the TRIQS environment variables by sourcing the
triqsvars.sh
file from your TRIQS installation:$ source path_to_triqs/share/triqs/triqsvars.sh
In the build directory call
cmake
, including any additional custom CMake options, see below:$ cmake ../som.src
Compile the code, run the unit tests and install the application:
$ make $ make test $ make install
Custom CMake options
The compilation of SOM can be configured using CMake-options:
cmake ../som.src -DOPTION1=value1 -DOPTION2=value2 ...
Options |
Syntax |
---|---|
Specify an installation path other than path_to_triqs |
|
Build in Debugging Mode |
|
Enable compilation of shared libraries |
|
Build a Debian package |
|
Disable testing (not recommended) |
|
Build the documentation locally |
|
Build without Python support |
|
Initial size of the cache to store computed LHS |
|
Enable extended debugging output (developers only) |
|
Run static analyzer tools ( |
|
Compile SOM library with LLVM Address Sanitizer (developers only) |
|
Compile SOM library with LLVM Undefined Behavior Sanitizer (developers only) |
|