| 670 | } |
| 671 | |
| 672 | std::string |
| 673 | Step::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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected