MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / GetPlatformInfo

Function GetPlatformInfo

tensorflow/lite/delegates/gpu/cl/cl_device.cc:49–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47namespace {
48template <typename T>
49T GetPlatformInfo(cl_platform_id id, cl_platform_info info) {
50 T result;
51 cl_int error = clGetPlatformInfo(id, info, sizeof(T), &result, nullptr);
52 if (error != CL_SUCCESS) {
53 return -1;
54 }
55 return result;
56}
57
58std::string GetPlatformInfo(cl_platform_id id, cl_platform_info info) {
59 size_t size;

Callers 1

GetPlatformVersionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected