Passing arguments through __local memory in OpenCL -


i confused the __local memory in opencl here. read spec saying data flow has host __global, , __local. see kernel function this:

__kernel void foo(__local float * a) 

i wondering how data transferred directly __local memory in way?

thanks.

it not possible fill local buffer on host side. therefore have follow flow host -> __global -> __local.

local buffer can either created on host side , passed kernel parameter or on gpu side inside kernel. creating local buffer on host side gives advantage decide size before kernel run can important if local buffer size needs different each time kernel run.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -