[Rtk-users] CUDA Ramp filter

Simon Rit simon.rit at creatis.insa-lyon.fr
Wed Jun 15 05:42:16 EDT 2016


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 <mailto: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 list
>>>     Rtk-users at public.kitware.com <mailto:Rtk-users at public.kitware.com>
>>>     http://public.kitware.com/mailman/listinfo/rtk-users
>>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>
>
>
>
>
>
>
>
> _______________________________________________
> Rtk-users mailing list
> Rtk-users at public.kitware.com
> http://public.kitware.com/mailman/listinfo/rtk-users
>
>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/rtk-users/attachments/20160615/4122f112/attachment-0010.html>


More information about the Rtk-users mailing list