MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / with_compute_drivers

Method with_compute_drivers

crates/openshell-core/src/config.rs:625–635  ·  view source on GitHub ↗
(mut self, drivers: I)

Source from the content-addressed store, hash-verified

623 /// Create a new configuration with the configured compute drivers.
624 #[must_use]
625 pub fn with_compute_drivers<I, D>(mut self, drivers: I) -> Self
626 where
627 I: IntoIterator<Item = D>,
628 D: ToString,
629 {
630 self.compute_drivers = drivers
631 .into_iter()
632 .map(|driver| driver.to_string())
633 .collect();
634 self
635 }
636
637 /// Register a Unix domain socket endpoint for a named remote driver.
638 #[must_use]

Calls

no outgoing calls