I see that we can use printf in kernel function for fermi cards. But when I compile the example for the programming guide, I got an error: identifier “printf” is undefined
I see that we can use printf in kernel function for fermi cards. But when I compile the example for the programming guide, I got an error: identifier “printf” is undefined
I can confirm that doesn’t work with either CUDA 3.1 or the current 3.2rc. I have gotten printf to work on Fermi in other codes before, and looking at the interim outputs from nvcc, this looks like an nvcc bug of some sort. Some magic combinations of code features get the printf definitions propagated into the correct phases of the compilation trajectory, other code (like this one), doesn’t.
I can confirm that doesn’t work with either CUDA 3.1 or the current 3.2rc. I have gotten printf to work on Fermi in other codes before, and looking at the interim outputs from nvcc, this looks like an nvcc bug of some sort. Some magic combinations of code features get the printf definitions propagated into the correct phases of the compilation trajectory, other code (like this one), doesn’t.