Hi Bogdan,
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.
Best,
Cedric
Cedric Laczny,
PhD Student
UNIVERSITÉ DU LUXEMBOURG
LUXEMBOURG CENTRE FOR SYSTEMS BIOMEDICINE
Campus Belval | House of Biomedicine
7, avenue des Hauts-Fourneaux
L-4362 Esch-sur-Alzette
T +352 46 66 44 6398
F +352 46 66 44 6949
[email protected] http://lcsb.uni.lu <http://lcsb.uni.lu/>
-----
This message is confidential and may contain privileged information. It is
intended for the named recipient only. If you receive it in error please
notify me and permanently delete the original message and any copies.
-----
On 17.08.12 09:08, "Bogdan Opanchuk" <[email protected]> wrote:
>Hi Cédric,
>
>On Fri, Aug 17, 2012 at 4:49 PM, Cédric LACZNY <[email protected]>
>wrote:
>> extern "C"
>> {
>> void main_kernel(float* inp_P, unsigned int N, float* mappedX, unsigned
>>int
>> no_dims) {
>> // Š Some code Š
>> }
>> }
>
>You have to prefix your exported kernel definition with '__global__'.
>See the code on the main page of http://documen.tician.de/pycuda/ ,
>for example.
_______________________________________________
PyCUDA mailing list
[email protected]
http://lists.tiker.net/listinfo/pycuda