<div dir="ltr">Dear Cyril,<div><br></div><div>Yes. When I reduced the number of projections, I am not getting this error anymore. My initial projection size which caused the error was 1420x1416x21. It seems that error is due to CUDA memory issues. My GPU is GeForce GTX 670.</div><div><br></div><div>With regards,</div><div>Shiras</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 15, 2016 at 11:42 AM, Simon Rit <span dir="ltr"><<a href="mailto:simon.rit@creatis.insa-lyon.fr" target="_blank">simon.rit@creatis.insa-lyon.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  

    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hi,<br>
    I recently added the --subsetsize option (see <a href="https://github.com/SimonRit/RTK/commit/b78bd03f38a6944448b77a683a0c1d69857b439d" target="_blank">this
      commit</a>). You can try "--subsetsize 1" instead of using
    rtksubselect.<span class="HOEnZb"><font color="#888888"><br>
    Simon</font></span><div><div class="h5"><br>
    <br>
    <div>On 15/06/2016 11:02, Cyril Mory wrote:<br>
    </div>
    <blockquote type="cite"><br>
      <br>
      
      <br>
      <br>
      <br>
      Hi Shiras,<br>
      <br>
      <br>
      <br>
      Another user had the same error some years ago : <br>
      <br>
      <a href="http://public.kitware.com/pipermail/rtk-users/2012-November/000028.html" target="_blank">http://public.kitware.com/pipermail/rtk-users/2012-November/000028.html</a><br>
      <br>
      It seemed to be a GPU memory size issue.<br>
      <br>
      <br>
      <br>
      Can you tell what GPU you use, are what are the size and number of<br>
      your projections ? Can you try with a single projection (you can
      use<br>
      the "rtksubselect" application to create such a dataset out of<br>
      yours) ? <br>
      <br>
      <br>
      <br>
      Best regards,<br>
      <br>
      Cyril<br>
      <br>
      <br>
      <br>
      <div>On 06/15/2016 10:50 AM, Shiras<br>
        Abdurahman wrote:<br>
        <br>
      </div>
      <br>
      <blockquote type="cite"><br>
        
        <br>
        <div dir="ltr">Dear Cyril,<br>
          <div><br>
            <br>
          </div>
          <br>
          <div>Thanks a lot. Now rtkramp.exe works with cuda option.</div>
          <br>
          <div>I am trying to integrate rtk cuda ramp filter into my
            recon<br>
            program. I read the projections with ProjectionsReader and<br>
            pass image pointer to cuda ramp filter pipeline using</div>
          <br>
          <div>cudaRampFilter->SetInput(projections);<br>
            <br>
          </div>
          <br>
          <div><br>
            <br>
          </div>
          <br>
          <div>I am getting runtime error and it says</div>
          <br>
          <div><br>
            <div>Error during cuda ramp filtering ::</div>
            <br>
            <div>D:/programming/cpp/ext_libs/rtk_1_2/src/code/rtkCudaFFTConvolutionImageFilter.cu</div>
            <br>
            <div>:97:</div>
            <br>
            <div>itk::ERROR: CUFFT ERROR #2</div>
            <br>
          </div>
          <br>
          <div><br>
            <br>
          </div>
          <br>
          <div>Do I need to enable or disable any parameter while
            reading<br>
            projections to get rid of this error? I<br>
            changed rtk_proj_reader_->Update<br>
            to rtk_proj_reader_->UpdateOutputInformation();</div>
          <br>
          <div>But I am still getting the error. </div>
          <br>
          <div>The error exists only with CudaFFTRampImageFilter<br>
             and FFTRampImageFilter works fine.</div>
          <br>
          <div><br>
            <br>
          </div>
          <br>
          <div>With regards,</div>
          <br>
          <div>Shiras</div>
          <br>
          <div><br>
            <br>
          </div>
          <br>
          <div><br>
            <br>
          </div>
          <br>
          <div><br>
            <br>
          </div>
          <br>
          <div> </div>
          <br>
          <div><br>
            <br>
          </div>
          <br>
        </div>
        <br>
        <div class="gmail_extra"><br>
          <br>
          <div class="gmail_quote">On Tue, Jun 14, 2016 at 3:38 PM,
            Cyril<br>
            Mory <span dir="ltr"><<a href="mailto:cyril.mory@uclouvain.be" target="_blank">cyril.mory@uclouvain.be</a>></span><br>
            wrote:<br>
            <br>
            <blockquote class="gmail_quote"><br>
              <div text="#000000" bgcolor="#FFFFFF"> Hi Shiras,<br>
                <br>
                <br>
                <br>
                We found that bug recently with Sebastien Brousmiche and<br>
                fixed it, at least for the use case we were considering.<br>
                Can you try with the git master version of RTK ?<br>
                <br>
                Alternatively, you can replace <br>
                <br>
                <br>
                <br>
                reader->Update()<br>
                <br>
                <br>
                <br>
                with <br>
                <br>
                <br>
                <br>
                reader->UpdateOutputInformation()<br>
                <br>
                <br>
                <br>
                in line 61 of rtkramp.cxx and see if it fixes the
                problem.<br>
                <br>
                <br>
                <br>
                Regards,<br>
                <br>
                Cyril<br>
                <div><br>
                  <div><br>
                    <br>
                    <br>
                    <br>
                    <div>On 06/14/2016 03:12 PM, Shiras Abdurahman
                      wrote:<br>
                      <br>
                    </div>
                    <br>
                  </div>
                  <br>
                </div>
                <br>
                <blockquote type="cite"><br>
                  <div><br>
                    <div><br>
                      <div dir="ltr">Dear all,<br>
                        <div><br>
                          <br>
                        </div>
                        <br>
                        <div>When I use rtkramp with cuda option, I am<br>
                          getting following error</div>
                        <br>
                        <div><br>
                          <br>
                        </div>
                        <br>
                        <div><br>
                          <div>ExceptionObject caught with<br>
                            streamer->Update() in file<br>
                            D:\programming\cpp\ext_li</div>
                          <br>
                          <div>bs\rtk_1_2\src\applications\rtkramp\rtkramp.cxx<br>
                            line 93</div>
                          <br>
                          <div><br>
                            <br>
                          </div>
                          <br>
                          <div>itk::ExceptionObject (000000ADA7DAF220)</div>
                          <br>
                          <div>Location: "unknown"</div>
                          <br>
                          <div>File:<br>
d:\programming\cpp\ext_libs\rtk_1_2\src\code\rtkCudaFFTConvolutionImageFil</div>
                          <br>
                          <div>ter.txx</div>
                          <br>
                          <div>Line: 50</div>
                          <br>
                          <div>Description: itk::ERROR:<br>
                            CudaFFTRampImageFilter(000000ADAA53B490):<br>
                            CudaFFTConvol</div>
                          <br>
                          <div>utionImageFilter assumes that input<br>
                            requested and buffered regions are equal.</div>
                          <br>
                        </div>
                        <br>
                        <div><br>
                          <br>
                        </div>
                        <br>
                        <div>However, cpu version of ramp filter works<br>
                          fine.</div>
                        <br>
                        <div><br>
                          <br>
                        </div>
                        <br>
                        <div>Thanks in advance.</div>
                        <br>
                        <div><br>
                          <br>
                        </div>
                        <br>
                        <div>With regards,</div>
                        <br>
                        <div>Shiras</div>
                        <br>
                      </div>
                      <br>
                      <br>
                      <br>
                      <fieldset></fieldset>
                      <br>
                      <br>
                      <br>
                    </div>
                    <br>
                  </div>
                  <br>
                  <pre>_______________________________________________
Rtk-users mailing list
<a href="mailto:Rtk-users@public.kitware.com" target="_blank">Rtk-users@public.kitware.com</a>
<a href="http://public.kitware.com/mailman/listinfo/rtk-users" target="_blank">http://public.kitware.com/mailman/listinfo/rtk-users</a>
</pre>
                  <br>
                </blockquote>
                <br>
                <br>
                <br>
              </div>
              <br>
            </blockquote>
            <br>
          </div>
          <br>
          <br>
          <br>
        </div>
        <br>
      </blockquote>
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
Rtk-users mailing list
<a href="mailto:Rtk-users@public.kitware.com" target="_blank">Rtk-users@public.kitware.com</a>
<a href="http://public.kitware.com/mailman/listinfo/rtk-users" target="_blank">http://public.kitware.com/mailman/listinfo/rtk-users</a>
</pre>
      <br>
      <br>
    </blockquote>
    <br>
    <br>
  </div></div></div>

</blockquote></div><br></div>