Set ArrayFire's active device based on \p id of type cl_device_id \param[in] id the cl_device_id of the device to be set as active device */
| 209 | \param[in] id the cl_device_id of the device to be set as active device |
| 210 | */ |
| 211 | static inline void setDeviceId(cl_device_id id) |
| 212 | { |
| 213 | af_err err = afcl_set_device_id(id); |
| 214 | if (err != AF_SUCCESS) throw af::exception("Failed to set OpenCL device as active device"); |
| 215 | } |
| 216 | #endif |
| 217 | |
| 218 | #if AF_API_VERSION >= 39 |
nothing calls this directly
no test coverage detected