Matthias Seise <mse...@gmx.de> writes: > Hi, > > I'm using pycuda quite a while. Now I'm supposed to distribute my software > without installing a C++ compiler on all machines. How can I distribute > "compiled" kernels. > > I found the option module_from_file but when I'm using it on the standard > kernel 'multiply_them' I get > logicError: cuModuleLoad failed: invalid context > > I found the Thread > http://stackoverflow.com/questions/5918937/pycudathreading-invalid-handles-on-kernel-invocations/5919737#5919737 > > But How do I get the correct function name?
It's generally easier to declare your functions extern "C" than to guess the (C++-mangled) function names. HTH, Andreas
pgpYnB066OfqW.pgp
Description: PGP signature
_______________________________________________ PyCUDA mailing list PyCUDA@tiker.net http://lists.tiker.net/listinfo/pycuda