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

Function CL_API_CALL BuildProgram

opencl/tools/cltrace/cltrace.cpp:1684–1704  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1682}
1683
1684static cl_int CL_API_CALL BuildProgram(
1685 cl_program program, cl_uint num_devices, const cl_device_id* device_list, const char* options,
1686 void(CL_CALLBACK* pfn_notify)(cl_program program, void* user_data), void* user_data) {
1687 std::ostringstream ss;
1688 Rec r(&ss);
1689
1690 ss << "clBuildProgram(" << program << ',';
1691 ss << num_devices << ',' << getHandlesString(device_list, num_devices);
1692 ss << ',' << getStringString(options) << ',';
1693 ss << pfn_notify << ',' << user_data;
1694
1695 addRec(&r);
1696 cl_int ret = original_dispatch.BuildProgram(program, num_devices, device_list, options,
1697 pfn_notify, user_data);
1698 delRec(&r);
1699
1700 ss << ") = " << getErrorString(ret);
1701 ss << std::endl;
1702 std::cerr << ss.str();
1703 return ret;
1704}
1705
1706static cl_int CL_API_CALL UnloadCompiler(void) {
1707 std::ostringstream ss;

Callers

nothing calls this directly

Calls 6

getHandlesStringFunction · 0.85
getStringStringFunction · 0.85
addRecFunction · 0.85
delRecFunction · 0.85
getErrorStringFunction · 0.85
BuildProgramMethod · 0.80

Tested by

no test coverage detected