Sorry for the stupid question: I found what I was looking for in teh Sobel filter example.

On Thu, Jun 21, 2012 at 8:09 PM, marmaduke <> wrote:

I have been trying to get started with the example on the
wiki (using pycuda 2011.2.2 built from git), but it produces

File "", line 153, in process
File "/usr/local/lib/python2.6/dist-packages/pycuda-2011.2.2-py2.6-linux-x86_64.egg/pycuda/",
line 429, in function_prepared_call

ArgumentError: Python argument types in
    Function.param_set_texref(Function, int)
did not match C++ signature:
    param_set_texref(pycuda::function {lvalue}, pycuda::texture_reference)

along with several DeprecationWarnings. Has anyone recently had better
success with Py{GL, CUDA} integration?

I did try modifying the C++ param_set_texref to take an int, cast it
as a reference but that lead only to segfaults..