Hi Arief, On Wed, 23 Feb 2011 12:43:08 +0700, arief nur andono <[email protected]> wrote: > Hi, I'm trying to include cuPrintf.cu ( > http://code.google.com/p/stanford-cs193g-sp2010/wiki/TutorialHelloWorld) in > my pycuda kernel code but it said files not found > where should I put cuPrintf.cu so pycuda kernel could use it?? I was put > cuPrintf.cu in the same folder with python code but it doesn't work
You'd have to pass a "-I" option with the directory of the file in the options argument of SourceModule. Note that at present PyCUDA won't detect changes in included files. So you might be better off reading the file yourself and just attaching it to the top of your code. Andreas
pgpPKPhQdXQ1Z.pgp
Description: PGP signature
_______________________________________________ PyCUDA mailing list [email protected] http://lists.tiker.net/listinfo/pycuda
