Get the stream for the CUDA device with \p id in ArrayFire context \param[in] id ArrayFire device id \returns cuda stream used by CUDA device \ingroup cuda_mat */
| 108 | \ingroup cuda_mat |
| 109 | */ |
| 110 | static inline cudaStream_t getStream(int id) |
| 111 | { |
| 112 | cudaStream_t retVal; |
| 113 | af_err err = afcu_get_stream(&retVal, id); |
| 114 | if (err!=AF_SUCCESS) |
| 115 | throw af::exception("Failed to get CUDA stream from ArrayFire"); |
| 116 | return retVal; |
| 117 | } |
| 118 | #endif |
| 119 | |
| 120 | #if AF_API_VERSION >= 31 |
nothing calls this directly
no test coverage detected