Get the type of the current device */
| 295 | Get the type of the current device |
| 296 | */ |
| 297 | static inline deviceType getDeviceType() |
| 298 | { |
| 299 | afcl_device_type res = AFCL_DEVICE_TYPE_UNKNOWN; |
| 300 | af_err err = afcl_get_device_type(&res); |
| 301 | if (err!=AF_SUCCESS) throw af::exception("Failed to get OpenCL device type"); |
| 302 | return res; |
| 303 | } |
| 304 | #endif |
| 305 | |
| 306 | #if AF_API_VERSION >= 33 |
no test coverage detected