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 [2026/08/06 13:21] (current) – Maurits W. Haverkort | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | {{indexmenu_n> | ||
| + | ====== Parallelization ====== | ||
| + | |||
| + | ### | ||
| + | Quanty is a parallel code that can use several 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. Note that for a few number of cores the code normally scales well, i.e. 16 cores compared to 1 is about 16 times faster. For many cores this scaling is no longer valid. For a large number of calculations you need to test the optimum on your machine. | ||
| + | ### | ||