| 68 | #endif |
| 69 | |
| 70 | bool 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 | |
| 85 | static afcl::deviceType getDeviceTypeEnum(const Device& dev) { |
| 86 | return static_cast<afcl::deviceType>(dev.getInfo<CL_DEVICE_TYPE>()); |
no outgoing calls
no test coverage detected