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

Method clone

compute/include/boost/compute/kernel.hpp:139–144  ·  view source on GitHub ↗

Creates a new kernel object based on a shallow copy of the undelying OpenCL kernel object. \opencl_version_warning{2,1} \see_opencl21_ref{clCloneKernel}

Source from the content-addressed store, hash-verified

137 ///
138 /// \see_opencl21_ref{clCloneKernel}
139 kernel clone()
140 {
141 cl_int ret = 0;
142 cl_kernel k = clCloneKernel(m_kernel, &ret);
143 return kernel(k, false);
144 }
145 #endif // BOOST_COMPUTE_CL_VERSION_2_1
146
147 /// Returns a reference to the underlying OpenCL kernel object.

Callers 4

BOOST_AUTO_TEST_CASEFunction · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45

Calls 1

kernelClass · 0.70

Tested by 4

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