MCPcopy Create free account
hub / github.com/boostorg/compute / set_arg

Method set_arg

include/boost/compute/kernel.hpp:208–219  ·  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

206 ///
207 /// \see_opencl_ref{clSetKernelArg}
208 void set_arg(size_t index, size_t size, const void *value)
209 {
210 BOOST_ASSERT(index < arity());
211
212 cl_int ret = clSetKernelArg(m_kernel,
213 static_cast<cl_uint>(index),
214 size,
215 value);
216 if(ret != CL_SUCCESS){
217 BOOST_THROW_EXCEPTION(opencl_error(ret));
218 }
219 }
220
221 /// Sets the argument at \p index to \p value.
222 ///

Callers 15

paintGLMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
tesselate_sphereFunction · 0.45
mainFunction · 0.45
initializeGLMethod · 0.45

Calls 2

opencl_errorClass · 0.85
getMethod · 0.45

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