Skip to content

Configuration and compiler

Mathias Louboutin edited this page Jul 15, 2020 · 2 revisions

Devito uses just-in-time compilation for the underlying wave equation solves. The default compiler is using the default system compiler, but can be changed to any other specified compiler such as gcc. Either run the following command from the command line or add it to your ~/.bashrc file:

export DEVITO_ARCH=gcc

Devito uses shared memory OpenMP parallelism for solving PDEs. OpenMP is disabled by default, but you can enable OpenMP and define the number of threads (per PDE solve) as follows:

export DEVITO_LANGUAGE=openmp  # Enable OpenMP. 
export OMP_NUM_THREADS=4    # Number of OpenMP threads

You can find the complete list of environment variables options and defaults at Devito FAQ

Clone this wiki locally