<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: 'Calibri'; COLOR: #000000">
<DIV>sure thing...</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 style="font-color: black"><B>From:</B> <A
title=simon.rit@creatis.insa-lyon.fr
href="mailto:simon.rit@creatis.insa-lyon.fr">Simon Rit</A> </DIV>
<DIV><B>Sent:</B> Tuesday, August 04, 2015 4:43 PM</DIV>
<DIV><B>To:</B> <A title=ghostcz@hotmail.com
href="mailto:ghostcz@hotmail.com">ghostcz</A> </DIV>
<DIV><B>Cc:</B> <A title=rtk-users@public.kitware.com
href="mailto:rtk-users@public.kitware.com">rtk-users@public.kitware.com</A>
</DIV>
<DIV><B>Subject:</B> Re: [Rtk-users] CUFFT error</DIV></DIV></DIV>
<DIV> </DIV></DIV>
<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>That's a very good question! I have no idea but let us know if you find
out...<BR></DIV>Simon<BR></DIV>
<DIV class=gmail_extra>
<DIV> </DIV>
<DIV class=gmail_quote>On Tue, Aug 4, 2015 at 3:00 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="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>Hi</DIV>
<DIV>If I use spacing =0.4623 , size=[800 2000 1000]</DIV><SPAN>
<DIV>------------- Device memory usage ------------</DIV></SPAN>
<DIV>Total memory = 5368512512 bytes</DIV>
<DIV>Free memory = 16805888 bytes</DIV>
<DIV>Used memory = 5351706624 bytes</DIV>
<DIV>Used memory = 99.687%</DIV>
<DIV>----------------------------------------------then it crashed.</DIV>
<DIV> </DIV>
<DIV>If I use spacing =0.462 , size=[800 2000 1000]</DIV><SPAN>
<DIV>------------- Device memory usage ------------</DIV></SPAN>
<DIV>Total memory = 5368512512 bytes</DIV>
<DIV>Free memory = 146837504 bytes</DIV>
<DIV>Used memory = 5221675008 bytes</DIV>
<DIV>Used memory = 97.2648%</DIV>
<DIV>----------------------------------------------didn’t crash, but a near
miss.</DIV>
<DIV> </DIV>
<DIV>Yes, it looks like a memory problem. But why a small change in spacing
will increase the memory consumption?</DIV>
<DIV> </DIV>
<DIV>Best regards,</DIV>
<DIV>Louie</DIV>
<DIV> </DIV>
<DIV> </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 1:27 PM</DIV>
<DIV>
<DIV class=h5>
<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>
<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>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>
<DIV> </DIV>
<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="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>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>
<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>
<DIV> </DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></BLOCKQUOTE></DIV>
<DIV> </DIV></DIV></DIV></DIV></DIV></BODY></HTML>