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

Function stringToVendor

src/library/common/devinfo.c:30–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28#include <devinfo.h>
29
30static DeviceVendor
31stringToVendor(const char *str)
32{
33 DeviceVendor vendor;
34
35 if (!strcmp(str, "Advanced Micro Devices, Inc.")) {
36 vendor = VENDOR_AMD;
37 }
38 else if (!strcmp(str, "NVIDIA Corporation")) {
39 vendor = VENDOR_NVIDIA;
40 }
41 else {
42 vendor = VENDOR_UNKNOWN;
43 }
44
45 return vendor;
46}
47
48static DeviceChip
49stringToChip(const char *str)

Callers 1

identifyDeviceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected