Message: Re: Random engine in multithreaded Geant4 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Re: Random engine in multithreaded Geant4 

Forum: Particles
Re: Question Random engine in multithreaded Geant4 (Armin Schuebel)
Re: Idea Re: Random engine in multithreaded Geant4 (David)
Re: None Re: Random engine in multithreaded Geant4 (Armin Schuebel)
Date: 27 Aug, 2014
From: Armin Schuebel <Armin Schuebel>

I now did some more testing. Apparently in my application only the main random generator is affected. If I use the default engine and set the seed using setTheSeed and a value from urandom and print every engine status in the BeginOfRunAction() only the first engine is different for a couple of runs.

Then I tested to set the seed for every thread independently using G4Random::setTheSeed() in the BeginOfRunAction(). However then the whole simulation ends in strange behaviour with no reasonable output.

I run the simulation in 200 threads and want to perform a couple of independent runs to add up. Is there any option to initialize the random engine in a way to do that in multi-threaded mode?

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Random engine in multithreaded Geant4   (Arlychev Mikhail - 18 Sep, 2014)
 Add Message Add Message
to: "Re: Random engine in multithreaded Geant4"

 Subscribe Subscribe

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


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]