martin.bergtholdt at philips.com
Fri Mar 25 11:05:04 PDT 2011
I'm trying to run the printf example in the wiki:
>>> import pycuda.driver as cuda
>>> import pycuda.autoinit
>>> from pycuda.compiler import SourceModule
>>> mod = SourceModule("""
... #include <stdio.h>
... __global__ void say_hi()
... printf("I am %d.%d\\n", threadIdx.x, threadIdx.y);
>>> func = mod.get_function("say_hi")
Everything works fine, but I do not get any output on the last line. Any ideas what can go wrong here?
pycuda.VERSION (2011, 1)
MSVC 9.0 2008 (32-bit)
The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the PyCUDA