CUDA_ERROR_UNKNOWN When Using a CUDAKernel

My system:
32bit Matlab (student) on win7 64bit machine.
GeForce GT555m, 2gb
Problem:
I'm trying to use a rotation kernel to rotate 3d pts, but once I use feval with that kernel, any further calls to the gpu (gpuArray, gather, etc.) get the following response, CUDA_ERROR_UNKNOWN.
When I load the kernel I get this response,
Warning: Expected pointer type for kernel argument
1 but found '.u64' in the PTX.
> In C:\Program Files (x86)\MATLAB\R2013a Student\toolbox\distcomp\gpu\+parallel\+internal\+gpu\handleKernelArgs.p>iCheckPTXEntryAgainstCProto at 424
In C:\Program Files (x86)\MATLAB\R2013a Student\toolbox\distcomp\gpu\+parallel\+internal\+gpu\handleKernelArgs.p>handleKernelArgs at 81
Warning: Expected pointer type for kernel argument
2 but found '.u64' in the PTX.
> In C:\Program Files (x86)\MATLAB\R2013a Student\toolbox\distcomp\gpu\+parallel\+internal\+gpu\handleKernelArgs.p>iCheckPTXEntryAgainstCProto at 424
In C:\Program Files (x86)\MATLAB\R2013a Student\toolbox\distcomp\gpu\+parallel\+internal\+gpu\handleKernelArgs.p>handleKernelArgs at 81
Since gpuArray and gather both work before calling feval with that kernel, I'm wondering if there is something wrong with the kernel or if the problem is else where. I have not tried loading a different kernel and running it. Any thoughts?

1 件のコメント

Jeremy Goodsitt
Jeremy Goodsitt 2013 年 3 月 10 日
Well, I tried running a different kernel which produces the same warning, but works fine. I'm thinking it has something to do with memory allocation. Or going outside the bounds of the matrix.

サインインしてコメントする。

 採用された回答

Edric Ellis
Edric Ellis 2013 年 3 月 11 日

3 投票

That warning means you are using 64-bit pointer types on the GPU, whereas the 32-bit host application is using 32-bit pointer types. You need to recompile your PTX code in 32-bit mode. It should work to add "-m 32" to your NVCC command line.

1 件のコメント

Jeremy Goodsitt
Jeremy Goodsitt 2013 年 3 月 11 日
Thank you for your response, that indeed was the reason for my error. I assume this is because the student version is 32-bit, yes?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeGPU Computing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by