Set the cl_device_id as the active ArrayFire OpenCL device
(dev_id: cl_device_id)
| 89 | |
| 90 | /// Set the cl_device_id as the active ArrayFire OpenCL device |
| 91 | pub 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 |
| 99 | pub fn add_device_context(dev_id: cl_device_id, ctx: cl_context, queue: cl_command_queue) { |
nothing calls this directly
no test coverage detected