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

Function afcl_get_platform

src/api/unified/opencl.cpp:22–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22af_err afcl_get_platform(afcl_platform* res) {
23 af_backend backend;
24 af_get_active_backend(&backend);
25 if (backend == AF_BACKEND_OPENCL) { CALL(afcl_get_platform, res); }
26 return AF_ERR_NOT_SUPPORTED;
27}
28
29af_err afcl_get_context(cl_context* ctx, const bool retain) {
30 af_backend backend;

Callers 2

getPlatformFunction · 0.50
getPlatformFunction · 0.50

Calls 1

af_get_active_backendFunction · 0.70

Tested by

no test coverage detected