MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / verify_present

Function verify_present

src/backend/opencl/platform.cpp:96–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94int getBackend() { return AF_BACKEND_OPENCL; }
95
96bool verify_present(const string& pname, const string ref) {
97 auto iter =
98 search(begin(pname), end(pname), begin(ref), end(ref),
99 [](const string::value_type& l, const string::value_type& r) {
100 return tolower(l) == tolower(r);
101 });
102
103 return iter != end(pname);
104}
105
106static string platformMap(string& platStr) {
107 using strmap_t = map<string, string>;

Callers 2

getPlatformEnumFunction · 0.70
compare_defaultFunction · 0.70

Calls 2

beginFunction · 0.85
endFunction · 0.85

Tested by

no test coverage detected