Tesla 2070C

From: Bryan Catanzaro [mailto:[email protected]]
Sent: 25 March 2011 19:07
To: Bergtholdt, Martin
Cc: [email protected]
Subject: Re: [PyCUDA] printf

What device are you running this on?

- bryan

On Mar 25, 2011, at 11:05 AM, "Bergtholdt, Martin" 
<[email protected]<mailto:[email protected]>> wrote:
Hi,

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")
>>> func(block=(4,4,1))
>>>

Everything works fine, but I do not get any output on the last line. Any ideas 
what can go wrong here?

Cuda 3.2
Windows-7
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.
_______________________________________________
PyCUDA mailing list
[email protected]<mailto:[email protected]>
http://lists.tiker.net/listinfo/pycuda
_______________________________________________
PyCUDA mailing list
[email protected]
http://lists.tiker.net/listinfo/pycuda
  • [PyCUDA] printf Bergtholdt, Martin
    • Re: [PyCUDA] printf Bergtholdt, Martin

Reply via email to