performing CUDA calculation
??? Invalid MEX-file ‘/home/me/matlab/prog/cuda/kernel.mexa64’:
/home/me/matlab/prog/cuda/kernel.mexa64: undefined symbol: $gpu_registers.
This line is in nvopts.sh
CFLAGS=‘-O3 -DBG=1 --ptxas-options=-v -G -g --keep -arch sm_13 -Xcompiler “-fPIC -D_GNU_SOURCE -pthread -fexceptions -m64”’
OS :
Fedora Core 10, x86_64, 2.2beta, matlab 2007b
The $gpu_registers symbol is defined in a file called ptxvars.cu, located in the /usr/local/cuda/bin directory.
It is possible that when compiling the mex file, it does not get linked properly.
Could you try to:
-
copy the file in the same directory where you are compiling the project
-
generate an object file from ptxvars.cu
-
add this object to your mex file
Incredibly crappy antivirus software prevented me yesterday from trying this out and the rest of this week is holidays here so monday I will try it.