AnsweredAssumed Answered

OPENCL CPU number of kernel arguments

Question asked by jm7788 on Sep 28, 2013
Latest reply on Oct 7, 2013 by himanshu.gautam



i'm trying to bring alot of (~50) arguments by my OpenCL AMD APP into kernel

and it looks like this:


kernel void test(int ip,

                         int ix,

                         int iy,

                         global float *mm,

                         global float *nn,

                         global float *oo,

                         int nx,

                         int ny,

                         global int *p,

                         global float *fa1,

                         global float *fa2,

                         global float *fa3) { ...}


I started with an empty kernel, and inserted one argument after another into argument list in cl-file.

Everything works without any trouble, until adding the the last one, "fa3".

But no buildlog messages while building program.


But since that last adding, i got segmentation faults at runtime, .

Q: So, is there any limit in the general number of arguments?


What have i overlooked? These are no constant, where i have e.g. a limit of 8.





PS: i found an example of my own, where i added 13 arguments, but only 2 were global float*, one as input, the other as output

So it may have something to do with the cl_mem variables that i have defined outside (float *) kernel (and should get them as global float* inside)