(
&self,
count: u32,
consume: bool,
)
| 194 | } |
| 195 | |
| 196 | fn selected_device_ids( |
| 197 | &self, |
| 198 | count: u32, |
| 199 | consume: bool, |
| 200 | ) -> Result<Vec<String>, CdiGpuSelectionError> { |
| 201 | let state = self |
| 202 | .state |
| 203 | .read() |
| 204 | .expect("CDI GPU selector state lock poisoned"); |
| 205 | self.round_robin.selected_default_device_ids( |
| 206 | &state.inventory, |
| 207 | count, |
| 208 | consume, |
| 209 | state.allow_all_devices, |
| 210 | ) |
| 211 | } |
| 212 | } |
| 213 | |
| 214 | /// Concurrency-safe round-robin cursor for default CDI GPU selection. |
no test coverage detected