Installation
Anaconda
We provide Linux and macOS (both Intel and Apple Silicon) packages for the Anaconda distribution. The packages are provided through the ‘krivenko’ Anaconda.org channel. After installing conda you can install SOM with:
conda install -c krivenko -c conda-forge triqs_som
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.2 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) |
|
Compiling SOM from source using EasyBuild
EasyBuild is a software build and installation
framework that allows you to manage (scientific) software on High Performance
Computing (HPC) systems in an efficient way. Please, make sure that the eb
tool is installed on your system by following
EasyBuild’s installation guide.
SOM 2.x is available starting from EasyBuild version 5.1.1. To install SOM and its prerequisites (including toolchains, Python, various libraries and the TRIQS libraries), type:
$ eb --robot TRIQS-som-2.1.1-foss-2023a.eb
Corresponding environment modules will also be generated, thus a package can be loaded using:
$ module load TRIQS-som/2.1.1-foss-2023a-Python-3.11.3
or simply:
$ module load TRIQS-som
for the most recent version.