MCPcopy Create free account
hub / github.com/ROCm/clr / CL_API_CALL CreateKernel

Function CL_API_CALL CreateKernel

opencl/tools/cltrace/cltrace.cpp:1771–1788  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1769}
1770
1771static cl_kernel CL_API_CALL CreateKernel(cl_program program, const char* kernel_name,
1772 cl_int* errcode_ret) {
1773 std::ostringstream ss;
1774 Rec r(&ss);
1775
1776 ss << "clCreateKernel(" << program << ',';
1777 ss << getStringString(kernel_name) << ',';
1778
1779 addRec(&r);
1780 cl_kernel ret = original_dispatch.CreateKernel(program, kernel_name, errcode_ret);
1781 delRec(&r);
1782
1783 ss << getErrorString(errcode_ret) << ") = " << ret;
1784
1785 ss << std::endl;
1786 std::cerr << ss.str();
1787 return ret;
1788}
1789
1790static cl_int CL_API_CALL CreateKernelsInProgram(cl_program program, cl_uint num_kernels,
1791 cl_kernel* kernels, cl_uint* num_kernels_ret) {

Callers

nothing calls this directly

Calls 4

getStringStringFunction · 0.85
addRecFunction · 0.85
delRecFunction · 0.85
getErrorStringFunction · 0.85

Tested by

no test coverage detected