| 283 | } |
| 284 | |
| 285 | bool device_supports_extension(const cl::Device &device, const char *extension_name) |
| 286 | { |
| 287 | std::string extensions = device.getInfo<CL_DEVICE_EXTENSIONS>(); |
| 288 | auto pos = extensions.find(extension_name); |
| 289 | return (pos != std::string::npos); |
| 290 | } |
| 291 | |
| 292 | bool device_supports_extension_version(const cl::Device &device, |
| 293 | const char *extension_name, |
no test coverage detected