Message: Re: How is parallelization implemented using MPI and Geant4? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: How is parallelization implemented using MPI and Geant4? 

Forum: Documentation and Examples
Re: Question How is parallelization implemented using MPI and Geant4? (Krisztian Balla)
Re: Sad Re: How is parallelization implemented using MPI and Geant4? (Krisztian Balla)
Re: Idea Re: How is parallelization implemented using MPI and Geant4? (Krisztian Balla)
Date: 31 Jan, 2009
From: Tom Roberts <Tom Roberts>

Most programs based on Geant4 are trivially parallelizable, in that each event is independent of the others, so one merely needs to distribute the events to the different parallel jobs. One needs to arrange for the output files of the parallel jobs to be different, and one needs a way to combine them afterward. Note that Geant4 is not currently capable of parallelizing tracking within an event, though I believe there is a group looking at it; I have looked at it (in another context) and there are many difficulties.

In my program, G4beamline, I seed the random number generator with the event number before each event, so the user need merely arrange for the different jobs to use disjoint event numbers, and to name each job's output file using the first event number. By outputting NTuples into Root files, combining the results is simple. Note that MPI is not needed at all -- a simple shell script starts all the jobs and Root combines the output files into plots and histograms.

This works for parallelization up to perhaps 32 jobs. Beyond that it gets rather cumbersome; certainly 10,000 parallel jobs is not feasible this way.

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

1 Agree: Re: How is parallelization implemented using MPI and Geant4?   (Krisztian Balla - 31 Jan, 2009)
1 None: Re: How is parallelization implemented using MPI and Geant4?   (Tom Roberts - 31 Jan, 2009)
2 Question: Re: How is parallelization implemented using MPI and Geant4?   (Geng - 01 Jul, 2012)
1 None: Re: How is parallelization implemented using MPI and Geant4?   (Youming Yang - 02 Jul, 2012)
... 1 Message(s)
 Add Message Add Message
to: "Re: How is parallelization implemented using MPI and 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 ]