Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
documentation:parallel [2016/09/11 22:07] – created Maurits W. Haverkort | documentation:parallel [2017/02/23 16:55] (current) – Maurits W. Haverkort | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{indexmenu_n> | ||
+ | ====== Parallelization ====== | ||
+ | |||
+ | ### | ||
+ | Quanty (at least the linux version, the mac version will follow when xcode / clang starts to suport omp again) is a parallel code that can use many cores using a shared memory setup. In a bash shell you can tell the code how many thread it can use by setting the system variable OMP_NUM_THREADS before you run the code | ||
+ | ### | ||
+ | |||
+ | <code bash> | ||
+ | export OMP_NUM_THREADS=16 | ||
+ | </ | ||
+ | |||
+ | ### | ||
+ | That’s all. If you have the hardware all the suden your calculations are 16 times faster. | ||
+ | ### |