[Rtk-users] CUDA Ramp filter

Shiras Abdurahman shiraska at gmail.com
Fri Jun 17 04:53:06 EDT 2016


Dear Cyril,

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.

With regards,
Shiras

On Wed, Jun 15, 2016 at 11:42 AM, Simon Rit <simon.rit at creatis.insa-lyon.fr>
wrote:

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


More information about the Rtk-users mailing list