<div dir="ltr"><div>Then I don't see what else could be the problem. If it's a GPU memory issue, you'll see it by adding the following command<br>   {                                                                                                                                                                                                                                                                              <br>    size_t free, used, total;<br>    cudaMemGetInfo(&free, &total);<br>    used = total - free;<br><br>    std::cout << std::endl;<br>    std::cout << "------------- Device memory usage ------------" << std::endl;<br>    std::cout << "Total memory = " << total << " bytes" << std::endl;<br>    std::cout << "Free memory = " << free << " bytes" << std::endl;<br>    std::cout << "Used memory = " << used << " bytes" << std::endl;<br>    std::cout << "Used memory = " << (used * 100.0 / total) << "%" << std::endl;<br>    std::cout << "----------------------------------------------" << std::endl;<br>    std::cout << std::endl;<br>  }<br><br>before the crashing command. If the memory is the issue, then I'm not sure I understand why either, I quite agree with your comments. If it's not a memory issue, then I don't know what's the problem...<br></div>Simon<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 4, 2015 at 1:05 PM, ghostcz <span dir="ltr"><<a href="mailto:ghostcz@hotmail.com" target="_blank">ghostcz@hotmail.com</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">
<div dir="ltr">
<div style="FONT-SIZE:12pt;FONT-FAMILY:'Calibri';COLOR:#000000">
<div>Thank you.</div>
<div>I kept the dimension to the same value. I think reducing the spacing will 
need less rows in the projections, because the physical length will reduce with 
the spacing.</div>
<div>Interestingly, it also works if I use 0.0462 instead of 0.04623 as 
spacing.</div>
<div>Yes, I use –subsetsize=1 and –division=2 while –lowmem enabled. The origin 
is always updated with –0.5*spacing*(size-1);</div>
<div> </div>
<div>Best regards,</div>
<div>Louie</div>
<div style="FONT-SIZE:small;FONT-FAMILY:'Calibri';FONT-WEIGHT:normal;COLOR:#000000;FONT-STYLE:normal;TEXT-DECORATION:none;DISPLAY:inline">
<div style="FONT:10pt tahoma">
<div> </div>
<div style="BACKGROUND:#f5f5f5">
<div><b>From:</b> <a title="simon.rit@creatis.insa-lyon.fr" href="mailto:simon.rit@creatis.insa-lyon.fr" target="_blank">Simon Rit</a> </div>
<div><b>Sent:</b> Tuesday, August 04, 2015 12:09 PM</div>
<div><b>To:</b> <a title="ghostcz@hotmail.com" href="mailto:ghostcz@hotmail.com" target="_blank">ghostcz</a> </div>
<div><b>Cc:</b> <a title="rtk-users@public.kitware.com" href="mailto:rtk-users@public.kitware.com" target="_blank">rtk-users@public.kitware.com</a> 
</div>
<div><b>Subject:</b> Re: [Rtk-users] CUFFT error</div></div></div>
<div> </div></div><div><div class="h5">
<div style="FONT-SIZE:small;FONT-FAMILY:'Calibri';FONT-WEIGHT:normal;COLOR:#000000;FONT-STYLE:normal;TEXT-DECORATION:none;DISPLAY:inline">
<div dir="ltr">
<div>Hi,<br></div>From <a>this 
page</a>, you have<br><pre>CUFFT_ALLOC_FAILED   = 2,  //  cuFFT failed to allocate GPU or CPU memory</pre>
<div style="OVERFLOW:hidden;BORDER-TOP:medium none;BORDER-RIGHT:medium none;BORDER-BOTTOM:medium none;COLOR:rgb(0,0,0);TEXT-ALIGN:left;TEXT-DECORATION:none;BORDER-LEFT:medium none;BACKGROUND-COLOR:rgb(255,255,255)">This 
is not suprising that you have a GPU memory issue when decreasing the spacing 
because a finer volume spacing might require  more rows of the projections 
for the reconstruction and therefore you can end up with being out of memory. 
Try processing one projection at a time with --subsetsize 1. If it's still too 
large, you'll have to change your --dimension to process a smaller volume in the 
y direction.<br></div>
<div style="OVERFLOW:hidden;BORDER-TOP:medium none;BORDER-RIGHT:medium none;BORDER-BOTTOM:medium none;COLOR:rgb(0,0,0);TEXT-ALIGN:left;TEXT-DECORATION:none;BORDER-LEFT:medium none;BACKGROUND-COLOR:rgb(255,255,255)">Simon<br></div></div>
<div class="gmail_extra">
<div> </div>
<div class="gmail_quote">On Tue, Aug 4, 2015 at 10:49 AM, ghostcz <span dir="ltr"><<a href="mailto:ghostcz@hotmail.com" target="_blank">ghostcz@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT:1ex;MARGIN:0px 0px 0px 0.8ex;BORDER-LEFT:#ccc 1px solid">
  <div dir="ltr">
  <div dir="ltr">
  <div style="FONT-SIZE:12pt;FONT-FAMILY:'Calibri';COLOR:#000000">
  <div>Dear rtk users/developers,</div>
  <div> </div>
  <div>I was testing the rtkfdk.exe application.</div>
  <div>The program ran into an error and caught an exception saying:</div>
  <div>“</div>
  <div>itk::ExceptionObject (00000000002EEA60)</div>
  <div>Location: "unknown"</div>
  <div>File: C:/Users/liy/root/RTK/code/rtkCudaFFTRampImageFilter.cu</div>
  <div>Line: 97</div>
  <div>Description: itk::ERROR: CUFFT ERROR #2”</div>
  <div>To save you a trip to the documentation, Line: 97 is here:</div>
  <div>“</div>
  <div>if(fftDimension.z==1)</div>
  <div>    result = cufftPlan2d(&fftFwd, inputDimension.y, 
  inputDimension.x, CUFFT_R2C);</div>
  <div>  else</div>
  <div>    result = cufftPlan3d(&fftFwd, inputDimension.z, 
  inputDimension.y, inputDimension.x, CUFFT_R2C);</div>
  <div>  CUFFT_CHECK_ERROR(result);</div>
  <div>“</div>
  <div> </div>
  <div>This occurred when --spacing=0.04623, while the program works just fine 
  if I use --spacing=0.05.</div>
  <div>Is there anyone can help me with this?</div>
  <div> </div>
  <div>Best regards,</div>
  <div>Louie</div></div></div></div><br>_______________________________________________<br>Rtk-users 
  mailing list<br><a href="mailto:Rtk-users@public.kitware.com" target="_blank">Rtk-users@public.kitware.com</a><br><a href="http://public.kitware.com/mailman/listinfo/rtk-users" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/rtk-users</a><br><br></blockquote></div>
<div> </div></div></div></div></div></div></div></div>
</blockquote></div><br></div>