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

Function afcl_add_device_context

src/api/unified/opencl.cpp:57–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57af_err afcl_add_device_context(cl_device_id dev, cl_context ctx,
58 cl_command_queue que) {
59 af_backend backend;
60 af_get_active_backend(&backend);
61 if (backend == AF_BACKEND_OPENCL) {
62 CALL(afcl_add_device_context, dev, ctx, que);
63 }
64 return AF_ERR_NOT_SUPPORTED;
65}
66
67af_err afcl_set_device_context(cl_device_id dev, cl_context ctx) {
68 af_backend backend;

Callers 2

addDeviceFunction · 0.50
addDeviceFunction · 0.50

Calls 1

af_get_active_backendFunction · 0.70

Tested by

no test coverage detected