Page 1 of 1

Allocating __global storage from within a kernel?

PostPosted: Thu Jul 02, 2015 6:46 am
by nickoppen
Hi,

I want to share some data between cores in a simple (but not very efficient) manner so I declared

__global float linkError[SOMEHUGEAMOUNTOFSPACE]

inside a kernel with very sad results. Using an array already clmalloced on the host worked fine.

Is there any way of doing a clmalloc of global storage from within a kernel?

nick

Re: Allocating __global storage from within a kernel?

PostPosted: Thu Jul 02, 2015 12:59 pm
by tnt
I don't think OpenCL allows that.