On Sonntag 18 Oktober 2009, Nick Gaens wrote:
>      __kernel void Dijkstra ( __global float** resistancemap, __global
>  const int* args )
> 
>  However, when trying to build this code, the following error is shown:
>      C:\DOCUME~1\Nick\LOCALS~1\Temp\OCL123.tmp.cl(12): error: kernel must
>  return void; pointer argument must point to addrSpace global, local, or
>  constant __kernel void Dijkstra ( __global float** resistancemap, __global
>  const int* args ) ^
>  "kernel must return void": but there is "void" in front of "Dijkstra",
>  isn't it? "pointer argument must point to addrSpace global, local, or
>  constant": what is causing this? the fact that there are two asterisks?
>  "__global" is clearly present and adding "const" would be plainly wrong,
>  since we flagged table_buff to be READ_WRITEable :-S

CL doesn't do pointers-to-pointers in kernel arguments, as device addresses 
may vary between invocations.

Andreas

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
PyOpenCL mailing list
[email protected]
http://tiker.net/mailman/listinfo/pyopencl_tiker.net

Reply via email to