| 1603 | } |
| 1604 | |
| 1605 | static 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 | |
| 1627 | static cl_program CL_API_CALL CreateProgramWithBinary(cl_context context, cl_uint num_devices, |
| 1628 | const cl_device_id* device_list, |
nothing calls this directly
no test coverage detected