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
Post a Comment