Hi Cédric

On Fri, Aug 17, 2012 at 5:15 PM, Cédric LACZNY <[email protected]> wrote:
> Thanks for the suggestion but it's causing other errors all of the same
> notion, e.g. the following:
> kernel.cu(142): error: calling a host function("NVMatrix::eltWiseDivide")
> from a __device__/__global__ function("unsigned short") is not allowed
>
> Actually, that class NVMatrix is defined in custom.cuh.

The functions that are not exported, but still executed on GPU, must
have '__device__' qualifier, this applies to class methods too. I am
not sure how it managed to work with plain CUDA without these
qualifiers.

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

Reply via email to