Set the CUDA device with given native id as the active device for ArrayFire \param[in] nativeId native device id of the CUDA device \ingroup cuda_mat */
| 145 | \ingroup cuda_mat |
| 146 | */ |
| 147 | static inline void setNativeId(int nativeId) |
| 148 | { |
| 149 | af_err err = afcu_set_native_id(nativeId); |
| 150 | if (err!=AF_SUCCESS) |
| 151 | throw af::exception("Failed to change active CUDA device to the device with given native id"); |
| 152 | } |
| 153 | #endif |
| 154 | |
| 155 | } |
nothing calls this directly
no test coverage detected