parallel.gpu.CUDAKernel Error: no entries were found in the PTX file

2 views (last 30 days)
Hi, I am a beginner in using CUDA with matlab. From tutorial, I built a "VecSquare.cu" (code as shown below) to test parallel.gpu.CUDAKernel to launch Kernel and compute.
__global__ void VecSquare (double *A)
{
int i = threadIdx.x;
A[i] = A[i] *A[i];
}
Using command " ! nvcc -ptx VecSquare.cu -ccbin "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin" ", a VecSquare.ptx file was successfully generated. But when using "k = parallel.gpu.CUDAKernel ('VecSquare.ptx', 'VecSquare.cu')", it did not pass and gave an error: Error using handleKernelArgs (line 61) No entries were found in the PTX file
I have no clues to solve this. Could you help me with this? The cuda version I used was CUDA 6.5, and VS 2010 express and 2013 professional were installed on my PC.
Thank you very much!
Lu

Answers (0)

Tags

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!