[PyCUDA] cuModuleGetFunction failed: not found
Andreas Klöckner
lists at informa.tiker.net
Mon Dec 14 15:02:17 PST 2009
On Montag 14 Dezember 2009, Robert Cloud wrote:
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> pycuda._driver.LogicError: cuModuleGetFunction failed: not found
The problem is that nvcc compiles code as C++ by default, which means it uses
name mangling [1].
If you don't want to use PyCUDA's just-in-time compilation facilities [2],
then just add an 'extern "C"' to your declarations.
Andreas
[1] http://en.wikipedia.org/wiki/Name_mangling
[2] http://documen.tician.de/pycuda/driver.html#module-pycuda.compiler
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.tiker.net/pipermail/pycuda/attachments/20091214/7f145760/attachment-0001.pgp>
More information about the PyCUDA
mailing list