Get a vendor enumeration for the current platform */
| 308 | Get a vendor enumeration for the current platform |
| 309 | */ |
| 310 | static inline platform getPlatform() |
| 311 | { |
| 312 | afcl_platform res = AFCL_PLATFORM_UNKNOWN; |
| 313 | af_err err = afcl_get_platform(&res); |
| 314 | if (err!=AF_SUCCESS) throw af::exception("Failed to get OpenCL platform"); |
| 315 | return res; |
| 316 | } |
| 317 | #endif |
| 318 | |
| 319 | /** |
no test coverage detected