Skip to content

Multi-threading

This section is under construction

Multi-threading is also available on the proper calculation side, on a user-defined basis.

Provided that hardware resources are large enough, this mode may reduce significantly the overall runtime of heavy simulations.

To benefit from multi-threading, the simulation must be run in the following context:

  • The parallel option must be enabled (it is disabled by default)
  • The simulation mode must be either Adequacy or Economy

When the "parallel" solver option is used, each Monte-Carlo year is dispatched in an individual process on the available CPU cores. The number of such individual processes depends on the characteristics of the local hardware and on the value given to the study-dependent number-of-cores-mode advanced parameter. This parameter can take five different values (Minimum, Low, Medium, High, Maximum). The number of independent processes resulting from the combination (local hardware + study settings) is given in the following table, which shows the CPU allowances granted in the different configurations.

Minimum Low Medium High Maximum
1 Ceil(S/4) Ceil(S/2) Ceil(3S/4) S

Formula for CPU cores

Starting from 9.2 we changed the formula for the number of cores to simplify. Here's the old values and the new ones.

Starting from 9.2

- Available CPU Cores Minimum Low Medium High Maximum
- 1 1 1 1 1 1
- 2 1 1 1 2 2
- 3 1 1 2 3 3
- 4 1 1 2 3 4
- 5 1 2 3 4 5
- 6 1 2 3 5 6
- 7 1 2 4 6 7
- 8 1 2 4 6 8
- 9 1 3 5 7 9
- 10 1 3 5 8 10
- 11 1 3 6 9 11
- 12 1 3 6 9 12
- S > 12 1 Ceil(S/4) Ceil(S/2) Ceil(3S/4) S

Before 9.2

- Available CPU Cores Minimum Low Medium High Maximum
- 1 1 1 1 1 1
- 2 1 1 1 2 2
- 3 1 2 2 2 3
- 4 1 2 2 3 4
- 5 1 2 3 4 5
- 6 1 2 3 4 6
- 7 1 2 3 5 7
- 8 1 2 4 6 8
- 9 1 3 5 7 8
- 10 1 3 5 8 9
- 11 1 3 6 8 10
- 12 1 3 6 9 11
- S > 12 1 Ceil(S/4) Ceil(S/2) Ceil(3S/4) S-1

  1. When the number of MC years to run is smaller than the allowance, the parallel run includes all of these years in a single bundle and there is no "reduced allowance" message 

  2. The smallest bundle in this case is the ninth (year number 97 to year number 100).The first 8 bundles involve 12 MC years each.