Message: Re: best way to speed up simulations Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Idea Re: best way to speed up simulations 

Forum: Multithreading
Re: None best way to speed up simulations (Svetlana Shasharina)
Date: 02 Oct, 2017
From: Tim Meehan <Tim Meehan>

I just built it from source, and made sure to add "-DGEANT4_BUILD_MULTITHREADED=ON"
to the cmake build line. After that, I just followed the advice of this document online:
http://geant4.slac.stanford.edu/SLACTutorial14/MultiThreadingI.pdf

Many of the examples are built for multithreading, you can copy what they did. I didn't have to tinker with it much at all. You will probably want to make sure that there is a line like this in your main application code:

G4MTRunManager run_mgr;
run_mgr.SetNumberOfThreads(G4Threading::G4GetNumberOfCores());

 Add Message Add Message
to: "Re: best way to speed up simulations"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews