Set the device identified by device & context pair as the active device for ArrayFire
(dev_id: cl_device_id, ctx: cl_context)
| 105 | |
| 106 | /// Set the device identified by device & context pair as the active device for ArrayFire |
| 107 | pub fn set_device_context(dev_id: cl_device_id, ctx: cl_context) { |
| 108 | unsafe { |
| 109 | let err_val = afcl_set_device_context(dev_id, ctx); |
| 110 | handle_error_general(AfError::from(err_val)); |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | /// Remove the user provided device, context pair from ArrayFire device mamanger |
| 115 | pub fn delete_device_context(dev_id: cl_device_id, ctx: cl_context) { |
no test coverage detected