I am trying to compile the sample Szeta.m for Mathlab with CUDA.
To do it I have to compile few files with CUDA functions. It fails:
mex fft2_cuda.c -IC:\CUDA\include -LC:\CUDA\lib -lcudart -lcufft
Writing library for fft2_cuda.mexw32
c:\docume~1\ponizovs\locals~1\temp\mex_6b~1\fft2_cuda.obj .text: undefined reference to ‘_cudaMalloc@8’
c:\docume~1\ponizovs\locals~1\temp\mex_6b~1\fft2_cuda.obj .text: undefined reference to ‘_cudaMemcpy@16’
c:\docume~1\ponizovs\locals~1\temp\mex_6b~1\fft2_cuda.obj .text: undefined reference to ‘_cufftPlan2d@16’
c:\docume~1\ponizovs\locals~1\temp\mex_6b~1\fft2_cuda.obj .text: undefined reference to ‘_cufftExecC2C@16’
c:\docume~1\ponizovs\locals~1\temp\mex_6b~1\fft2_cuda.obj .text: undefined reference to ‘_cufftDestroy@4’
c:\docume~1\ponizovs\locals~1\temp\mex_6b~1\fft2_cuda.obj .text: undefined reference to ‘_cudaFree@4’
C:\PROGRA~1\MATLAB\R2008B\BIN\MEX.PL: Error: Link of ‘fft2_cuda.mexw32’ failed.
??? Error using ==> mex at 213
Unable to complete successfully.
What I am doing wrong? Might be I should change anything in mex.pl. I think I added any possible paths in Set Path in Mathlab.