Trying to get the Fermi device printf to work, but not having much success, I’m compiling a variation of a previous example found in this forum (however printf with no args still fails):
Tesla C2050 is sm_20, not sm_21. What happens if you compile for sm_20 ? I use device-side printf() on a C2050 under Linux64 all the time, so this should definitely work.
Just tried that to no avail. The PTX comes out with an sm_20 header regardless, so I guessed it was checking compatibility at compile time anyway.
The latest 270.40 driver with Cuda 4.0rc2 works fine for 32bit and 64bit however. It’s just 260.19 and Cuda 3.2 that have issues with 64bit.
I’ve tried rebooting on the same driver as well, but just can’t make it work with that combination. I’m happy to push my driver on and use cuda 4.0 as the version I use debugging, but I’d be interested to know if anyone else has encountered this issue though?
I’ve been getting the same error off and on : sometimes when I use printf i get “unknown error”. I just solved this issue in 1 project by running with the GPU debug flag -G0 on… Why should this be necessary?