It seems i cannot printf in .cu file, such as global, device function.
But I can printf in .cu file of C code.
Is there any advice about this?
It seems i cannot printf in .cu file, such as global, device function.
But I can printf in .cu file of C code.
Is there any advice about this?
I have used printf
functions in the same way (as any other C or C++ file) in .cu
files as well. Did you try it?
for example, here.
Yes. I try it in C++ cuda file. But it doesn’t work. Do you use any other compiling options?
You can refer to the Makefile that I have there, I guess.