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

Function afcu_get_stream

src/api/unified/cuda.cpp:16–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14#include <af/cuda.h>
15
16af_err afcu_get_stream(cudaStream_t* stream, int id) {
17 af_backend backend;
18 af_get_active_backend(&backend);
19 if (backend == AF_BACKEND_CUDA) { CALL(afcu_get_stream, stream, id); }
20 return AF_ERR_NOT_SUPPORTED;
21}
22
23af_err afcu_get_native_id(int* nativeid, int id) {
24 af_backend backend;

Callers 1

getStreamFunction · 0.50

Calls 1

af_get_active_backendFunction · 0.70

Tested by

no test coverage detected