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

Function set_device_native_id

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

Set active device using CUDA context's id # Parameters - `id` is the identifier of GPU in CUDA context

(native_id: i32)

Source from the content-addressed store, hash-verified

35///
36/// - `id` is the identifier of GPU in CUDA context
37pub fn set_device_native_id(native_id: i32) {
38 unsafe {
39 let err_val = afcu_set_native_id(native_id);
40 handle_error_general(AfError::from(err_val));
41 }
42}
43
44/// Get CUDA stream of active CUDA device
45///

Callers

nothing calls this directly

Calls 1

handle_error_generalFunction · 0.85

Tested by

no test coverage detected