enable device emulation mode of cuda in matlab

Can someone teach me how to enable the device emulation mode of CUDA in MATLAB…

Thanks in advance. :wacko:

you will have to add -emu=1 nvcc parameters in the makefile

hello! thanks for the answer… isnt this for C? how about for matlab?

Using CUDA from Matlab means calling a ( C ) mex function. So you are still programming C, it is just called from matlab.

the makefile is btw. under linux. I do not know if the CUDA Matlab plugin in windows also uses a makefile.