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

Function delete_device_context

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

Remove the user provided device, context pair from ArrayFire device mamanger

(dev_id: cl_device_id, ctx: cl_context)

Source from the content-addressed store, hash-verified

113
114/// Remove the user provided device, context pair from ArrayFire device mamanger
115pub fn delete_device_context(dev_id: cl_device_id, ctx: cl_context) {
116 unsafe {
117 let err_val = afcl_delete_device_context(dev_id, ctx);
118 handle_error_general(AfError::from(err_val));
119 }
120}
121
122///// Fetch Active ArrayFire device's type i.e. CPU/GPU/Accelerator etc.
123pub fn get_device_type() -> DeviceType {

Callers 1

mainFunction · 0.85

Calls 1

handle_error_generalFunction · 0.85

Tested by

no test coverage detected