Get a vendor enumeration for the current platform */
| 294 | Get a vendor enumeration for the current platform |
| 295 | */ |
| 296 | static inline platform getPlatform() |
| 297 | { |
| 298 | afcl_platform res = AFCL_PLATFORM_UNKNOWN; |
| 299 | af_err err = afcl_get_platform(&res); |
| 300 | if (err!=AF_SUCCESS) throw af::exception("Failed to get OpenCL platform"); |
| 301 | return res; |
| 302 | } |
| 303 | #endif |
| 304 | |
| 305 | /** |
nothing calls this directly
no test coverage detected