MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / set_arg

Method set_arg

compute/include/boost/compute/kernel.hpp:334–345  ·  view source on GitHub ↗

Sets the argument at \p index to \p value with \p size. \see_opencl_ref{clSetKernelArg}

Source from the content-addressed store, hash-verified

332 ///
333 /// \see_opencl_ref{clSetKernelArg}
334 void set_arg(size_t index, size_t size, const void *value)
335 {
336 BOOST_ASSERT(index < arity());
337
338 cl_int ret = clSetKernelArg(m_kernel,
339 static_cast<cl_uint>(index),
340 size,
341 value);
342 if(ret != CL_SUCCESS){
343 BOOST_THROW_EXCEPTION(opencl_error(ret));
344 }
345 }
346
347 /// Sets the argument at \p index to \p value.
348 ///

Callers 15

GPUHistogramMethod · 0.45
BeforeTrainMethod · 0.45
GPUHistogramMethod · 0.45
BeforeTrainMethod · 0.45
paintGLMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 1

opencl_errorClass · 0.85

Tested by 7

BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36