<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-CA" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hello Jiri,
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I had the same error and fixed it by adding the following after “CUDA_NVCC_FLAGS” on line 192 of CMakeLists.txt: -gencode arch=compute_XX, code=sm_XX, where
XX is the compute capability of your graphics card. A lot of the newer Nvidia graphics cards have a compute capability of 5.2 which isn’t listed in that file by default (in that case you would replace XX with 52).
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Also I have found that when configuring the installation using CMake, the option “CUDA_SDK_ROOT_DIR” is left blank by default. Make sure it is linked to your
CUDA install. The path should match the option for “CUDA_TOOLKIT_ROOT_DIR”.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">After making the above changes, recompile Gate and try your simulation again.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I hope this helps you fix your problem,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Nathan Lo<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> gate-users-bounces@lists.opengatecollaboration.org [mailto:gate-users-bounces@lists.opengatecollaboration.org]
<b>On Behalf Of </b>Zakarumit.Z@seznam.cz<br>
<b>Sent:</b> Wednesday, June 22, 2016 3:08 AM<br>
<b>To:</b> gate-users@lists.opengatecollaboration.org<br>
<b>Subject:</b> [Gate-users] GPU simulation exception<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p>Hello,<o:p></o:p></p>
<p>I have created a simple PET geometry with voxel phantom that already works when run on CPU. Hovewer, I would like to try GPU acceleration as well, but when I modify the code and run it, I receive following error:<o:p></o:p></p>
<p><o:p> </o:p></p>
<p> :: Stacks init<br>
:: Materials init<br>
:: Phantom init<br>
:: Activities init<br>
:: Start GPU<br>
:: Rnd ok<br>
:: Generation ok<br>
WARNING - GPU reachs max step<br>
:: Tracking ok<br>
:: Stop GPU (time 1.734591e-01 s)<br>
<br>
-------- EEEE ------- G4Exception-START -------- EEEE -------<br>
*** G4Exception : GeomNav0003<br>
issued by : G4PhantomParameterisation::GetReplicaNo()<br>
Point outside voxels!<br>
localPoint - (-nan,-nan,-nan) - is outside container solid: pacient_solid<br>
<br>
*** Fatal Error In Argument *** core dump ***<br>
-------- EEEE -------- G4Exception-END --------- EEEE -------<br>
<br>
<br>
*** G4Exception: Aborting execution ***<o:p></o:p></p>
<p><o:p> </o:p></p>
<p>I thought it might be just me making a mistake somewhere but I receive exactly the same error when launching GPU PET macro from the example folder. I am grateful for any advice regarding the matter and what might be causing it. Using GATE 7.2.<o:p></o:p></p>
<p>Best regards,<o:p></o:p></p>
<p><o:p> </o:p></p>
<p>Jiri Ters<o:p></o:p></p>
<p>Czech Technical University in Prague<o:p></o:p></p>
</div>
</div>
<p><br>
This e-mail may contain confidential and/or privileged information for the sole use of the intended recipient. <br>
Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited. <br>
If you have received this e-mail in error, please contact the sender and delete all copies. <br>
Opinions, conclusions or other information contained in this e-mail may not be that of the organization.</p></body>
</html>