Hi,
I want to debug CUDA program, coz I’m wondering if the array copied from host to device was changed.
Is there any method to print the array out so that I can see it?
Thanks,
Yuping
Hi,
I want to debug CUDA program, coz I’m wondering if the array copied from host to device was changed.
Is there any method to print the array out so that I can see it?
Thanks,
Yuping
If you compile in emulation mode then yes, you can just use printf. In Debug or Release mode, when the code is really executed on the GPU, no, you can’t.
Thanks, Big Mac!