[Rtk-users] Geometric phantom example on wiki

Yang K Park theday79 at gmail.com
Tue Aug 16 00:04:43 EDT 2016


Hi all,

 

I used to use RTK r1.03 without any problem.

However, today I adapted rtkfdk to my own code and ran into the following
compile error messages..

 

1>rtkcuda.lib(cuda_compile_generated_rtkCudaFFTRampImageFilter.cu.obj) :
error LNK2019: unresolved external symbol cufftPlan2d referenced in function
"void __cdecl CUDA_fft_convolution(struct int3 const &,struct int2 const
&,float *,struct float2 *)"
(?CUDA_fft_convolution@@YAXAEBUint3@@AEBUint2@@PEAMPEAUfloat2@@@Z)

1>rtkcuda.lib(cuda_compile_generated_rtkCudaFFTRampImageFilter.cu.obj) :
error LNK2019: unresolved external symbol cufftPlan3d referenced in function
"void __cdecl CUDA_fft_convolution(struct int3 const &,struct int2 const
&,float *,struct float2 *)"
(?CUDA_fft_convolution@@YAXAEBUint3@@AEBUint2@@PEAMPEAUfloat2@@@Z)

1>rtkcuda.lib(cuda_compile_generated_rtkCudaFFTRampImageFilter.cu.obj) :
error LNK2019: unresolved external symbol cufftExecR2C referenced in
function "void __cdecl CUDA_fft_convolution(struct int3 const &,struct int2
const &,float *,struct float2 *)"
(?CUDA_fft_convolution@@YAXAEBUint3@@AEBUint2@@PEAMPEAUfloat2@@@Z)

1>rtkcuda.lib(cuda_compile_generated_rtkCudaFFTRampImageFilter.cu.obj) :
error LNK2019: unresolved external symbol cufftExecC2R referenced in
function "void __cdecl CUDA_fft_convolution(struct int3 const &,struct int2
const &,float *,struct float2 *)"
(?CUDA_fft_convolution@@YAXAEBUint3@@AEBUint2@@PEAMPEAUfloat2@@@Z)

1>rtkcuda.lib(cuda_compile_generated_rtkCudaFFTRampImageFilter.cu.obj) :
error LNK2019: unresolved external symbol cufftSetCompatibilityMode
referenced in function "void __cdecl CUDA_fft_convolution(struct int3 const
&,struct int2 const &,float *,struct float2 *)"
(?CUDA_fft_convolution@@YAXAEBUint3@@AEBUint2@@PEAMPEAUfloat2@@@Z)

1>rtkcuda.lib(cuda_compile_generated_rtkCudaFFTRampImageFilter.cu.obj) :
error LNK2019: unresolved external symbol cufftDestroy referenced in
function "void __cdecl CUDA_fft_convolution(struct int3 const &,struct int2
const &,float *,struct float2 *)"
(?CUDA_fft_convolution@@YAXAEBUint3@@AEBUint2@@PEAMPEAUfloat2@@@Z)

 

I found that this error was caused by the following line in my code:

 

#if CUDA_FOUND

        feldkamp = FDKCUDAType::New(); <-- here!

 
SET_FELDKAMP_OPTIONS(static_cast<FDKCUDAType*>(feldkamp.GetPointer()));

#else

..

I also found that those problematic symbols (cufftPlan2d, cufftPlan3d,
cufftExecR2C, ..) are defined in "cufft.h".

 

It is very weird to me because I did the exactly same thing in my previous
project and there was no problem at that time.

Maybe I did something wrong but have no idea now.

 

Any helps/suggestions will be highly appreciated!

 

Regards,

Yang 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/rtk-users/attachments/20160816/dcc934eb/attachment-0009.html>


More information about the Rtk-users mailing list