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

Function CL_API_CALL CreateProgramWithSource

opencl/tools/cltrace/cltrace.cpp:1605–1625  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1603}
1604
1605static cl_program CL_API_CALL CreateProgramWithSource(cl_context context, cl_uint count,
1606 const char** strings, const size_t* lengths,
1607 cl_int* errcode_ret) {
1608 std::ostringstream ss;
1609 Rec r(&ss);
1610
1611 ss << "clCreateProgramWithSource(" << context << ',' << count << ',';
1612 ss << getProgramSourceString(strings, lengths, count) << ',';
1613 ss << lengths << ',';
1614
1615 addRec(&r);
1616 cl_program ret =
1617 original_dispatch.CreateProgramWithSource(context, count, strings, lengths, errcode_ret);
1618 delRec(&r);
1619
1620 ss << getErrorString(errcode_ret) << ") = " << ret;
1621
1622 ss << std::endl;
1623 std::cerr << ss.str();
1624 return ret;
1625}
1626
1627static cl_program CL_API_CALL CreateProgramWithBinary(cl_context context, cl_uint num_devices,
1628 const cl_device_id* device_list,

Callers

nothing calls this directly

Calls 4

getProgramSourceStringFunction · 0.85
addRecFunction · 0.85
delRecFunction · 0.85
getErrorStringFunction · 0.85

Tested by

no test coverage detected