Hi,
My project requires me to call CUDA library functions from within Matlab. I am running Matlab version R2016b on a Windows7 platform with a GeForce GTX 1080 GPU installed. I have CUDA installed and can compile and execute a .cu file from Matlab. If I were to simply use the library functions of CUDA from within Matlab, I am guessing there should be an equivalent step to create PTX file for the library, create a kernel with ‘parallel.gpu.CUDAKernel’ from Matlab and then use ‘feval’ to launch the kernel from with in Matlab. Also, I am using the following cmd to compile .cu code to .ptx.
K>>system(‘nvcc -ptx add_gpu_kernel.cu -Wno-deprecated-gpu-targets -ccbin “C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin”’);
Currently, I am able to use the following cmd to load the library in Matlab, but fail to use the library functions.
K>> loadlibrary cufft64_80 cufft.h
Thanks in advance for your help.
Regards,
Pavel