Remove the user provided device control constructs from the ArrayFire device manager pool This function should be used only when the user would like ArrayFire to remove an already pushed user generated OpenCL context and related objects. \param[in] dev is the OpenCL device id that has to be popped \param[in] ctx is the cl_context object to be removed from ArrayFire pool \note Arr
| 278 | \note ArrayFire does not take control of releasing the objects passed to it. The user needs to release them appropriately. |
| 279 | */ |
| 280 | static inline void deleteDevice(cl_device_id dev, cl_context ctx) |
| 281 | { |
| 282 | af_err err = afcl_delete_device_context(dev, ctx); |
| 283 | if (err!=AF_SUCCESS) throw af::exception("Failed to remove the requested device from ArrayFire device pool"); |
| 284 | } |
| 285 | #endif |
| 286 | |
| 287 |
no test coverage detected