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

Function afcl_set_device_id

src/backend/opencl/platform.cpp:817–823  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

815}
816
817af_err afcl_set_device_id(cl_device_id id) {
818 try {
819 setDevice(getDeviceIdFromNativeId(id));
820 }
821 CATCHALL;
822 return AF_SUCCESS;
823}
824
825af_err afcl_add_device_context(cl_device_id dev, cl_context ctx,
826 cl_command_queue que) {

Callers

nothing calls this directly

Calls 2

setDeviceFunction · 0.70
getDeviceIdFromNativeIdFunction · 0.70

Tested by

no test coverage detected