MCPcopy Create free account
hub / github.com/clMathLibraries/clBLAS / deviceVendor

Method deviceVendor

src/library/tools/ktest/step.cpp:672–691  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

670}
671
672std::string
673Step::deviceVendor(cl_device_id device)
674{
675 cl_int err;
676 size_t len;
677 char *str;
678 std::string vendor = "";
679
680 err = clGetDeviceInfo(device, CL_DEVICE_VENDOR, 0, NULL, &len);
681 if (err != CL_SUCCESS) {
682 return "";
683 }
684 str = new char[len + 1];
685 err = clGetDeviceInfo(device, CL_DEVICE_VENDOR, len, str, NULL);
686 if (err == CL_SUCCESS) {
687 vendor = str;
688 }
689 delete[] str;
690 return vendor;
691}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected