Skip to content

Multithreading

Cory R. Thornsberry edited this page Jun 7, 2019 · 1 revision

Multithreading

Cory R. Thornsberry

Last updated: May 24, 2019

If multithreading support was enabled during installation via -DGEANT4_BUILD_MULTITHREADED=ON, then you may enable it through the -n or --mt-thread-limit command line flags. For example

nextSim -i ourFirstMacro.mac -n 4

will run the simulation on four threads (usually CPU cores) simultaneously. If the number of threads specified is greater than the maximum number available to NEXTSim, the maximum number will be used instead. Additionally, if you specify zero threads -n 0 then the program will use all available threads.

Clone this wiki locally