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

Function afcl_set_device_context

src/api/unified/opencl.cpp:67–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67af_err afcl_set_device_context(cl_device_id dev, cl_context ctx) {
68 af_backend backend;
69 af_get_active_backend(&backend);
70 if (backend == AF_BACKEND_OPENCL) {
71 CALL(afcl_set_device_context, dev, ctx);
72 }
73 return AF_ERR_NOT_SUPPORTED;
74}
75
76af_err afcl_delete_device_context(cl_device_id dev, cl_context ctx) {
77 af_backend backend;

Callers 2

setDeviceFunction · 0.50
setDeviceFunction · 0.50

Calls 1

af_get_active_backendFunction · 0.70

Tested by

no test coverage detected