MCPcopy Index your code
hub / github.com/arrayfire/arrayfire-rust / get_stream

Function get_stream

cuda-interop/src/lib.rs:53–60  ·  view source on GitHub ↗

Get CUDA stream of active CUDA device # Parameters - `id` is the identifier of device in ArrayFire context # Return Values [cudaStream_t](https://docs.rs/cuda-runtime-sys/0.3.0-alpha.1/cuda_runtime_sys/type.cudaStream_t.html) handle.

(native_id: i32)

Source from the content-addressed store, hash-verified

51///
52/// [cudaStream_t](https://docs.rs/cuda-runtime-sys/0.3.0-alpha.1/cuda_runtime_sys/type.cudaStream_t.html) handle.
53pub fn get_stream(native_id: i32) -> cudaStream_t {
54 unsafe {
55 let mut ret_val: cudaStream_t = std::ptr::null_mut();
56 let err_val = afcu_get_stream(&mut ret_val as *mut cudaStream_t, native_id);
57 handle_error_general(AfError::from(err_val));
58 ret_val
59 }
60}

Callers

nothing calls this directly

Calls 1

handle_error_generalFunction · 0.85

Tested by

no test coverage detected