MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / getStream

Function getStream

include/af/cuda.h:110–117  ·  view source on GitHub ↗

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 */

Source from the content-addressed store, hash-verified

108 \ingroup cuda_mat
109 */
110static 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

Callers

nothing calls this directly

Calls 1

afcu_get_streamFunction · 0.50

Tested by

no test coverage detected