<div dir="ltr"><div><div><div><div>Hi Mirco,<br><br></div>The GATE GPU version does not save the source position, but only the position when it leaves the voxelized phantom, thus why you only see the faces of the phantom. <br></div>If you are really interested in the source positions, then you can change the GPU code to output that information to a file (although it might be very large txt file). <br>In the file GateEmisTomo.cc:<br><br>kernel_voxelized_source_b2b<<<grid, threads>>>(gamma1_d, gamma2_d, activities_d, E,<br> phantom_d.size_in_vox, phantom_d.voxel_size);<br> cudaThreadSynchronize();<br> printf(" :: Generation ok\n");<br></div>PRINT INFO HERE: gamma1_d.eventID gamma1_d.px gamma1_d.py gamma1_d.pz<br></div><div><br>Cheers,<br></div><div>Liliana<br></div><div><div><div>Forschungszentrum Jülich GmbH<br></div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 10 January 2017 at 14:11, Mirco Heß <span dir="ltr"><<a href="mailto:mirco.hess@uni-muenster.de" target="_blank">mirco.hess@uni-muenster.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div>I am trying to run the GPU PET example but am facing some problems. When looking at the output, it seems like the XYZ positions of the source are accumulated on the faces of the provided phantom/source volume, i.e. the bounding box of the 3D image. This is only true for the GPU-based simulation. When running the CPU-based simulation everythig seems to be fine. I have attached two screenshots to visualize the problem and the difference between the two cases. The problem is present in both the ASCII and ROOT output.</div><div><br></div><div>I already had this problem about two years ago with Gate 7.0 and was not able to resolve it.</div><div>Now I am running Gate 7.2 with GPU support activated, on Ubuntu 14.04 with updated NVIDIA and CUDA drivers. </div><div><br></div><div><br></div><div>Has anybody been able to successfully run this example? (gate_v7.2/examples/<wbr>gpumacros/pet/main-gpu.mac)</div><div><br></div><div>Any advice and pointers to resolve this issue would be highly appreciated. Thanks a lot in advance!</div><div><br></div><div><br></div><div>Cheers, </div><div>Mirco</div><br clear="all"><div><br></div>-- <br><div class="m_-4465431999979118705gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><font size="-1"><b>Mirco Heß</b><br>
PhD Candidate<br>
European Institute for Molecular Imaging (EIMI)<br>
<p><img src="cid:part1.06060103.07070901@uni-muenster.de" alt="_European Institute for Molecular Imaging - EIMI_" height="70"></p></font><div><font size="-1">European Institute for Molecular Imaging - EIMI<br>
Waldeyerstr. 15<br>
48149 Münster<br>
<a href="http://www.uni-muenster.de/eimi" target="_blank">http://www.uni-muenster.de/<wbr>eimi</a><br>
<br>
</font><font size="-1"><span><a href="tel:+49%20251%208349318" value="+492518349318" target="_blank">+49 (0)251 83 - 49318</a></span><br>
<a href="tel:+49%20251%208349313" value="+492518349313" target="_blank">+49 (0)251 83 - 49313</a> (Fax)<br>
eMail: <a href="mailto:mirco.hess@uni-muenster.de" target="_blank">mirco.hess@uni-muenster.de</a></font></div></div></div></div>
<br>______________________________<wbr>_________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.<wbr>opengatecollaboration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" rel="noreferrer" target="_blank">http://lists.<wbr>opengatecollaboration.org/<wbr>mailman/listinfo/gate-users</a><br></blockquote></div><br></div>