Get the current active device id
()
| 194 | |
| 195 | /// Get the current active device id |
| 196 | pub fn get_device() -> i32 { |
| 197 | unsafe { |
| 198 | let mut temp: i32 = 0; |
| 199 | let err_val = af_get_device(&mut temp as *mut c_int); |
| 200 | HANDLE_ERROR(AfError::from(err_val)); |
| 201 | temp |
| 202 | } |
| 203 | } |
| 204 | |
| 205 | /// Get memory information from the memory manager for the current active device |
| 206 | /// |
no test coverage detected