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

Function checkExtnAvailability

src/backend/opencl/device_manager.cpp:70–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68#endif
69
70bool checkExtnAvailability(const Device& pDevice, const string& pName) {
71 bool ret_val = false;
72 // find the extension required
73 string exts = pDevice.getInfo<CL_DEVICE_EXTENSIONS>();
74 stringstream ss(exts);
75 string item;
76 while (getline(ss, item, ' ')) {
77 if (item == pName) {
78 ret_val = true;
79 break;
80 }
81 }
82 return ret_val;
83}
84
85static afcl::deviceType getDeviceTypeEnum(const Device& dev) {
86 return static_cast<afcl::deviceType>(dev.getInfo<CL_DEVICE_TYPE>());

Callers 1

markDeviceForInteropMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected