[PyCUDA] cuModuleGetFunction failed: not found
Robert Cloud
rcloud at gmail.com
Mon Dec 14 15:09:33 PST 2009
Excellent, thank you Andreas that works great.
On Mon, Dec 14, 2009 at 5:02 PM, Andreas Klöckner
<lists at informa.tiker.net> wrote:
> 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
>
> _______________________________________________
> PyCUDA mailing list
> PyCUDA at tiker.net
> http://tiker.net/mailman/listinfo/pycuda_tiker.net
>
>
More information about the PyCUDA
mailing list