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

Function getPlatform

include/af/opencl.h:310–316  ·  view source on GitHub ↗

Get a vendor enumeration for the current platform */

Source from the content-addressed store, hash-verified

308 Get a vendor enumeration for the current platform
309*/
310static 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 /**

Callers 1

TESTFunction · 0.50

Calls 1

afcl_get_platformFunction · 0.50

Tested by

no test coverage detected