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

Function verify_present

src/backend/oneapi/platform.cpp:93–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91int getBackend() { return AF_BACKEND_ONEAPI; }
92
93bool verify_present(const string& pname, const string ref) {
94 auto iter =
95 search(begin(pname), end(pname), begin(ref), end(ref),
96 [](const string::value_type& l, const string::value_type& r) {
97 return tolower(l) == tolower(r);
98 });
99
100 return iter != end(pname);
101}
102
103// TODO: update to new platforms?
104inline string platformMap(string& platStr) {

Callers 1

getPlatformEnumFunction · 0.70

Calls 2

beginFunction · 0.85
endFunction · 0.85

Tested by

no test coverage detected