MCPcopy Index your code
hub / github.com/arrayfire/arrayfire-rust / set_device_id

Function set_device_id

opencl-interop/src/lib.rs:91–96  ·  view source on GitHub ↗

Set the cl_device_id as the active ArrayFire OpenCL device

(dev_id: cl_device_id)

Source from the content-addressed store, hash-verified

89
90/// Set the cl_device_id as the active ArrayFire OpenCL device
91pub fn set_device_id(dev_id: cl_device_id) {
92 unsafe {
93 let err_val = afcl_set_device_id(dev_id);
94 handle_error_general(AfError::from(err_val));
95 }
96}
97
98/// Push user provided device, context and queue tuple to ArrayFire device mamanger
99pub fn add_device_context(dev_id: cl_device_id, ctx: cl_context, queue: cl_command_queue) {

Callers

nothing calls this directly

Calls 1

handle_error_generalFunction · 0.85

Tested by

no test coverage detected