Debugging with printf and -deviceemu...

Hi,

I recently started developing on my Mac (8600M GT) using CUDA 2.0. I have a simple program which is calling a kernel which has a single printf statement in it. I am using the -deviceemu option during compilation. Despite this, I am not able to see the printf being output. Is this is a known issue? Anything I could try? Anything I could be doing wrong?

Thanks much in advance!
-Anand

Turns out this was caused due to a seemingly innocuous ‘-lcublas’ during the link phase. Removing that (since wasn’t using cublas anyway) caused printfs to start showing up again. Not sure what the deal is, but figured the post might be useful.

If you are using device emulation, you need to link the emulation version of the BLAS and FFT libraries (cublasemu and cufftemu).