Print Messages in PyCUDA

In simple CUDA programs, we can print messages in streams, including cuPrintf.h, but this is not explained anywhere in PyCUDA. How to do it in PyCUDA?

+4
source share
1 answer

Compute Capability 2.0 and later cuPrintf.h do not recommend using CUDA's built-in printf (). To use it, simply #include <stdio.h> and call printf() just like on the host.

The PyCUDA wiki page has a concrete example of this .

+5
source

All Articles