<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">This problem was mentioned in a
previous post: <a
href="http://permalink.gmane.org/gmane.comp.science.opengate.user/1133">http://permalink.gmane.org/gmane.comp.science.opengate.user/1133</a>.<br>
<br>
It happens because the job splitter (gjs) creates seeds as
unsigned long integers (as you can see in the cluster mac files)
but then the GateRandomEngine uses the C function atoi() to read
these seeds. Depending on your computer hardware and compiler, If
the seed in the mac file happens to be greater than INT_MAX then
atoi() will return INT_MAX. Thus all cluster nodes that have this
overflow condition will end up with the same seed INT_MAX.<br>
<br>
Check the cluster *.out files and look for the random engine
status. You should see a line like "Initial seed = ###" (you
might need to add "/gate/random/verbose 1" to see this output).
The overflow problem is indicated If the initial seed equals
INT_MAX and does not match the input seed in the corresponding mac
file. <br>
<br>
To fix it you either have to change the job splitter to ensure
that the seeds it writes out are less than INT_MAX, or change the
GateRandomEngine to use a different conversion function instead of
atoi(). HTH.<br>
--<br>
Jon<br>
<br>
On 5/19/2013 11:41 PM, Janus wrote:<br>
</div>
<blockquote cite="mid:201305201133402165206@foxmail.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<style>
BLOCKQUOTE {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
BODY {
LINE-HEIGHT: 1.5; FONT-FAMILY: 宋体; COLOR: #000000; FONT-SIZE: 10.5pt
}
P {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</style>
<meta name="GENERATOR" content="MSHTML 8.00.7600.16385">
<div>Dear gate-users,</div>
<div> </div>
<div>I have run gate with jobsplitter. Definitely it has divided
the job to 20 subjobs. However, I got the same imaging (i
compared the 20 images bit by bit)! The setEngineSeed did work
in the splitted *.mac files (bold text). The following codes
show the contents of the two splitted files:</div>
<div> </div>
<div>ClusterTestImaging1.mac</div>
<div>......</div>
<div>......</div>
<div>
<div>/gate/output/root/setFileName /home/usr/ClusterTestImaging/output/RT_IBL1</div>
<div>/gate/output/root/setRootHitFlag 0</div>
<div>/gate/output/root/setRootSinglesFlag 1</div>
<div>/gate/output/root/setRootNtupleFlag 0</div>
<div>/gate/output/verbose 2</div>
<div>/gate/output/imageCT/verbose 0</div>
<div>/gate/output/imageCT/setFileName /home/usr/ClusterTestImaging/RT_IBL1</div>
<div>/gate/output/imageCT/vrtFactor 10</div>
<div>/control/verbose 0</div>
<div>/run/verbose 0</div>
<div>/run/particle/verbose 0</div>
<div>/run/particle/dumpCutValues</div>
<div>/event/verbose 0</div>
<div>/tracking/verbose 0</div>
<div>/tracking/verbose 0</div>
<div>/gate/generator/verbose 0</div>
<div>/gate/source/verbose 0</div>
<div>/run/particle/verbose 0</div>
<div>/gate/run/initialize</div>
<div>/gate/application/setTimeSlice 1. s</div>
<div>/gate/application/setTimeStart 0. s</div>
<div>/gate/application/setTimeStop 20. s</div>
<div><strong>/gate/random/setEngineSeed 2231298888450829131</strong></div>
<div>/gate/output/root/enable</div>
<div>/gate/output/imageCT/enable</div>
<div>/gate/application/startDAQCluster 0 1 0 s</div>
<div>exit</div>
<div> </div>
<div> </div>
<div>ClusterTestImaging2.mac</div>
<div>......</div>
<div>......</div>
</div>
<div>
<div>/gate/output/root/setFileName /home/usr/ClusterTestImaging/RT_IBL2</div>
<div>/gate/output/root/setRootHitFlag 0</div>
<div>/gate/output/root/setRootSinglesFlag 1</div>
<div>/gate/output/root/setRootNtupleFlag 0</div>
<div>/gate/output/verbose 2</div>
<div>/gate/output/imageCT/verbose 0</div>
<div>/gate/output/imageCT/setFileName /home/usr/ClusterTestImaging/output/RT_IBL2</div>
<div>/gate/output/imageCT/vrtFactor 10</div>
<div>/control/verbose 0</div>
<div>/run/verbose 0</div>
<div>/run/particle/verbose 0</div>
<div>/run/particle/dumpCutValues</div>
<div>/event/verbose 0</div>
<div>/tracking/verbose 0</div>
<div>/tracking/verbose 0</div>
<div>/gate/generator/verbose 0</div>
<div>/gate/source/verbose 0</div>
<div>/run/particle/verbose 0</div>
<div>/gate/run/initialize</div>
<div>/gate/application/setTimeSlice 1. s</div>
<div>/gate/application/setTimeStart 0. s</div>
<div>/gate/application/setTimeStop 20. s</div>
<div><strong>/gate/random/setEngineSeed 2066136114380675524</strong></div>
<div>/gate/output/root/enable</div>
<div>/gate/output/imageCT/enable</div>
<div>/gate/application/startDAQCluster 1 2 0 s</div>
<div>exit</div>
</div>
<div> </div>
<div>Any comments will be gratefully appreciated. Thanks in
advance.</div>
<div>d</div>
<div>Regards,</div>
<hr style="WIDTH: 210px; HEIGHT: 1px" align="left" color="#b5c4df"
size="1">
<div><span>Janus</span></div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Gate-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a></pre>
</blockquote>
<br>
</body>
</html>