13 #include <cuda_runtime.h>
19 #if AF_API_VERSION >= 31
32 #if AF_API_VERSION >= 31
54 #if AF_API_VERSION >= 31
68 throw af::exception(
"Failed to get CUDA stream from ArrayFire");
73 #if AF_API_VERSION >= 31
87 throw af::exception(
"Failed to get CUDA device native id from ArrayFire");
Definition: exception.h:19
static cudaStream_t getStream(int id)
Get the stream for the CUDA device with id in ArrayFire context.
Definition: cuda.h:63
The function returned successfully.
Definition: defines.h:71
AFAPI af_err afcu_get_stream(cudaStream_t *stream, int id)
Get the stream for the CUDA device with id in ArrayFire context.
static int getNativeId(int id)
Get the native device id of the CUDA device with id in ArrayFire context.
Definition: cuda.h:82
AFAPI af_err afcu_get_native_id(int *nativeid, int id)
Get the native device id of the CUDA device with id in ArrayFire context.
af_err
Definition: defines.h:67
#define AFAPI
Definition: defines.h:31