We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae2a0f2 commit 009198eCopy full SHA for 009198e
libopencl/opencl_runtime_api.cc
@@ -263,14 +263,16 @@ void _cl_kernel::SetKernelArg(
263
264
cl_int _cl_kernel::bind_args( gpgpu_ptx_sim_arg_list_t &arg_list )
265
{
266
+ size_t offset = 0;
267
assert( arg_list.empty() );
268
unsigned k=0;
269
std::map<unsigned, arg_info>::iterator i;
270
for( i = m_args.begin(); i!=m_args.end(); i++ ) {
271
if( i->first != k )
272
return CL_INVALID_KERNEL_ARGS;
273
arg_info arg = i->second;
- gpgpu_ptx_sim_arg param( arg.m_arg_value, arg.m_arg_size, 0);
274
+ gpgpu_ptx_sim_arg param( arg.m_arg_value, arg.m_arg_size, offset );
275
+ offset += arg.m_arg_size;
276
arg_list.push_front( param );
277
k++;
278
}
0 commit comments