I need to do something like this inside a kernel:
However, I'm getting this error out of the clGetProgramBuildInfo call:Code :__private mytype* next_item = (mytype*)malloc(sizeof(mytype));
(interestingly, I only get this on my MacBook Pro, but not my newer iMac, which gives me a frustratingly blank error log...)Code :kernel referenced an external function malloc, that could not be found.
Do I need to use a special on-chip memory allocation system? If so, where is this documented? googling "opencl malloc" doesn't give you too many useful results.