mozul created page: release_notes authored by Rémy Mozul's avatar Rémy Mozul
...@@ -31,3 +31,18 @@ or that you add the path inside your command script with the two lines: ...@@ -31,3 +31,18 @@ or that you add the path inside your command script with the two lines:
import sys import sys
sys.path.append("my_build_path") sys.path.append("my_build_path")
``` ```
###### How to use multi-threaded version ####
First the code must be re-compiled (unavailable on Windows). Go to your build directory
(if you followed the instruction of the wiki it should be *lmgc90_user/build*), then type the
following command in your terminal:
```shell
cmake . -DWITH_OPENMP=True
```
Finally before running a computation, you must set two environment variables which are:
```shell
export OMP_SCHEDULE=STATIC
export OMP_NUM_THREADS=n
```
where **n** is the number of threads you want to use (usually no more than the number of core available).
\ No newline at end of file