Message: Re: Dumping event verbose tracking into a file for multiprocessing Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: Dumping event verbose tracking into a file for multiprocessing 

Forum: Event and Track Management
Re: Question Dumping event verbose tracking into a file for multiprocessing (Pablo Yepes)
Date: 27 Sep, 2018
From: Jonathan Madsen <Jonathan Madsen>

No. There is no guarantee that event N will finish before event N+X, etc. The threads grab a chunk of the total number of events and process them "out of order" in MT mode. In reality, the "event number" is irrelevant, it is used for computing and doesn't represent any actual physical quantity -- by changing the random number seed, "event 5" could become "event 926".

Side note, I/O is a very significant performance bottleneck so if you want info from your simulation, I suggest you store the data in memory (indexed by the event number if you still deem that relevant) and then print out the info at the end.

 Add Message Add Message
to: "Re: Dumping event verbose tracking into a file for multiprocessing"

 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 ]