D:\ITKRTK\RTK-2.4.1\utilities\ITKCudaCommon\src\itkCudaDataManager.cxx:177 @ unknown : Cuda Error : an illegal memory access was encountered
ExceptionObject caught with itk::WriteImage(IFDKOutputPointer, args_info.output_arg) in file D:\ITKRTK\RTK-2.4.1\applications\rtkiterativefdk\rtkiterativefdk.cxx line 118
Description: ITK ERROR: CudaImageDataManager(000001C3619BF4D0): Exception occurred during CudaDataManager::UpdateCPUBuffer
Cuda Error : an illegal memory access was encountered
I tried to run this example using Varian’s reconstruction data, but there was a cuda error. How can I solve it
–hardware “cuda” --geometry D:\ITKRTK\VarlianData\varian\geometry.xml --regexp .*.hnd --path D:\ITKRTK\VarlianData\varian\Scan0 --output slice30.mha --verbose --spacing 0.25,0.25,0.25 --dimension 1024,10,1024 --origin -127.875,30,-127.875 -n “20” --output-every “5”
this is my command line
I tried your command line on my linux computer. Initially, I had Cuda Error : out of memory. After using every 10 projections (with --regexp .*0.hnd) it worked. Can you try with less projections? Have you tried rtkfdk first?
It’s probably too small. According to the log you’ve sent, there is a 2157969408 (2.1 GB) buffer which probably contains your float projections. The forward projection will have the same size. With the rest, it’s probably too much memory. There is no streaming mechanism for this iterative algorithm which is rarely used, sorry… It would be great if you find where there is a GPU allocation which is not handled properly, you should normally get a more meaningful message.