Set active device using CUDA context's id # Parameters - `id` is the identifier of GPU in CUDA context
(native_id: i32)
| 35 | /// |
| 36 | /// - `id` is the identifier of GPU in CUDA context |
| 37 | pub 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 | /// |
nothing calls this directly
no test coverage detected