Hi Filippo,

On Sun, 19 Feb 2012 23:18:59 +0100, Sqoox85 <[email protected]> wrote:
> I'm trying to apply template in a kernel function but I can't.
> I follow the example in the wiki but it's only for __device__ fuctions
> 
> http://wiki.tiker.net/PyCuda/Examples/C%2B%2BFunctionTemplates
> 
> I couldn't figure out because extern "C" is useful to avoid  name mangling
> of the name kernel function.
> 
> Is there a way to solve it?

No. Even if you manage to avoid mangling, you still have to tell the
compiler what types to instantiate for, *at compile time*.

Andreas

Attachment: pgpda4jK34C07.pgp
Description: PGP signature

_______________________________________________
PyCUDA mailing list
[email protected]
http://lists.tiker.net/listinfo/pycuda

Reply via email to