MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / getPlatform

Function getPlatform

include/af/oneapi.h:296–302  ·  view source on GitHub ↗

Get a vendor enumeration for the current platform */

Source from the content-addressed store, hash-verified

294 Get a vendor enumeration for the current platform
295*/
296static 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 /**

Callers

nothing calls this directly

Calls 1

afcl_get_platformFunction · 0.50

Tested by

no test coverage detected