[Gate-users] Gate-users Digest, Vol 62, Issue 15

Geron Bindseil geron9 at gmail.com
Sat Jul 16 17:32:49 CEST 2011

Hi Alex,

The Geant code that GATE is based on is not currently multi-threaded. This
is in the works apparently, but it might be some time.

You have 2 options if you want to run GATE with more than one CPU:

(1) Use the built-in cluster tools, which split one large run into multiple
simulation-time intervals. The root files are then combined afterwards. My
understanding is that the cluster tools need to be run with one of several
cluster packages, one of which is for Mac OS.

(2) If you want to simulate a setup with multiple different parameters, you
can use the GATE batch mode to run many macros simultaneously. The syntax as
of Gate 6.1 is (without quotations): "Gate -a ParameterName ParameterValue
my_macro.mac < terminal_output.out". Here, ParameterName is what you want to
vary in your macro specified by curly brackets {ParameterName},
ParameterValue is the value you want to pass in, my_macro.mac is the name of
your macro and the file terminal_output.out is created to store the verbose
text output of the Gate simulation (not the data file). If you do this, your
macro should include an exit statement as the last line.

If you are interested, I have written a perl script I can send you that
implements the second option. The script determines the number of logical
CPUs available and then queues up Gate simulations, starting the next when
one CPU becomes available. You can always just manually run multiple macros
from the command line as a simple option.

Kind Regards,


Geron Bindseil
PhD Candidate, Physics
University of Western Ontario
London, Ontario, Canada
gbindsei at uwo.ca
519-661-2111 x 86452

On Sat, Jul 16, 2011 at 7:13 AM, Alex <piratemp at gmail.com> wrote:

> >
> > Hi:
> I am just starting to play with Gate.  Everything worked fine after the
> install but I could not get Gate to use more than 1 CPU in my multicore (12
> Xenon processors) during the simulation.  My basic setup is as followed:
> Ubuntu 10.04.2 LTS
> Gate v6.1
> Geant 4.9.4
> Appreciate any help.
> Alex Nguyen
> ECU Medical Physics
> Graduate student.
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users

More information about the Gate-users mailing list