CUDA toolkit version | using constant memory
Mostra commenti meno recenti
Hi
I've installed CUDA toolkit 4.1 instead of 4.0. And now matlab reports some errors depending on kernel that Im trying to create:
Error using handleKernelArgs (line 48)
The first input to parallel.gpu.CUDAKernel must be a file that contains PTX code or a string that is PTX code.
Error using handleKernelArgs (line 61)
No entries were found in the PTX file
NVIDIA is using new compiler in 4.1, and it seems to me that pct does not support it. Am I right? It is unclear for user which version of toolkit should he use. Maybe I missed something, but I could not find toolkit version requirements.
The second question is about using constant memory. Help says that user should define constant variables in CU file
__constant__ int N;
__constant__ double CONST_DATA[256];
Placing such definition in kernel does not work:
error: a "__constant__" variable declaration is not allowed inside a function body
Risposta accettata
Più risposte (1)
Matthew
il 21 Mag 2012
0 voti
the problem is still there .
nvcc -ptx -arch=sm_20 xxx.cu with cuda4.1 & 4.2 it run on ubuntu 11.10
matlab 2011b
Categorie
Scopri di più su GPU Computing in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!