The CudaContextManager has been removed, you should maybe try the master HEAD version.
On Fri, Jun 7, 2024 at 2:32 AM Fuquan Deng <dfq_2...@163.com> wrote: > > > it is strange. i define forward function and fdk function in the same > file. fdk can run, but forward function has error. I have found online, but > it did not help me. communicate with other peers, he does not know the > reason as well. > > > > > At 2024-06-06 21:18:48, "Simon Rit" <simon....@creatis.insa-lyon.fr> > wrote: > > Hi, > I don't know... It seems to be a problem with your driver according to > posts I find online. Can you run other Cuda software? Are you using the > current RTK head? > Simon > > On Thu, Jun 6, 2024 at 2:04 PM Fuquan Deng <dfq_2...@163.com> wrote: > >> void forwardConeBeam(float* volumn, float* integration, >> PhysicsParameters* params) >> >> { >> >> constexpr unsigned int Dimension = 3; >> >> using OutputPixelType = float; >> >> using OutputImageType = itk::CudaImage<OutputPixelType, Dimension>; >> >> using CopyImageType = itk::Image<OutputPixelType, Dimension>; >> >> using JFPType = >> rtk::CudaForwardProjectionImageFilter<OutputImageType, OutputImageType>; >> >> using ConstantImageSourceType = >> rtk::ConstantImageSource<OutputImageType>; >> >> using GeometryType = rtk::ThreeDCircularProjectionGeometry; >> >> using ImportFilterType = rtk::ImportImageFilter<OutputImageType>; >> >> >> ConstantImageSourceType::PointType origin; >> >> ConstantImageSourceType::SizeType size; >> >> ConstantImageSourceType::SpacingType spacing; >> >> ConstantImageSourceType::Pointer volumeSource = >> ConstantImageSourceType::New(); // when i used this >> code, cause error, the error show below >> >> >> >> size[0] = params->x; >> >> size[1] = params->y; >> >> size[2] = params->z; >> >> spacing[0] = params->atteESX; >> >> spacing[1] = params->atteESY; >> >> spacing[2] = params->atteESZ; >> >> origin[0] = params->minXP; >> >> origin[1] = params->minYP; >> origin[2] = params->minZP; >> D:\itk\InsightToolkit\Modules\Remote\RTK\utilities\ITKCudaCommon\src\itkCudaContextManager.cxx:72 >> @ __cdecl itk::CudaContextManager::CudaContextManager(void) : Cuda Error >> #999 >> >> >> D:\itk\InsightToolkit\Modules\Remote\RTK\utilities\ITKCudaCommon\src\itkCudaContextManager.cxx:72: >> Cuda Error #999 >> >> D:\itk\InsightToolkit\Modules\Remote\RTK\utilities\ITKCudaCommon\src\itkCudaContextManager.cxx:72 >> @ __cdecl itk::CudaContextManager::CudaContextManager(void) : Cuda Error >> #700 >> >> >> D:\itk\InsightToolkit\Modules\Remote\RTK\utilities\ITKCudaCommon\src\itkCudaContextManager.cxx:72: >> Cuda Error #700 >> >> D:\itk\InsightToolkit\Modules\Remote\RTK\utilities\ITKCudaCommon\src\itkCudaContextManager.cxx:72 >> @ __cdecl itk::CudaContextManager::CudaContextManager(void) : Cuda Error >> #700 >> >> so how to solve this error? >> >> >> _______________________________________________ >> Rtk-users mailing list >> rtk-us...@openrtk.org >> https://www.creatis.insa-lyon.fr/mailman/listinfo/rtk-users >> >
_______________________________________________ Rtk-users mailing list rtk-us...@openrtk.org https://www.creatis.insa-lyon.fr/mailman/listinfo/rtk-users