Get the native device id of the CUDA device with \p id in ArrayFire context \param[in] id ArrayFire device id \returns cuda native id of device \ingroup cuda_mat */
| 127 | \ingroup cuda_mat |
| 128 | */ |
| 129 | static inline int getNativeId(int id) |
| 130 | { |
| 131 | int retVal; |
| 132 | af_err err = afcu_get_native_id(&retVal, id); |
| 133 | if (err!=AF_SUCCESS) |
| 134 | throw af::exception("Failed to get CUDA device native id from ArrayFire"); |
| 135 | return retVal; |
| 136 | } |
| 137 | #endif |
| 138 | |
| 139 | #if AF_API_VERSION >= 32 |
nothing calls this directly
no test coverage detected