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

Function list_string_driver_config

crates/openshell-driver-vm/src/driver.rs:5170–5187  ·  view source on GitHub ↗
(field: &str, values: &[&str])

Source from the content-addressed store, hash-verified

5168 }
5169
5170 fn list_string_driver_config(field: &str, values: &[&str]) -> Struct {
5171 Struct {
5172 fields: std::iter::once((
5173 field.to_string(),
5174 Value {
5175 kind: Some(Kind::ListValue(prost_types::ListValue {
5176 values: values
5177 .iter()
5178 .map(|device_id| Value {
5179 kind: Some(Kind::StringValue((*device_id).to_string())),
5180 })
5181 .collect(),
5182 })),
5183 },
5184 ))
5185 .collect(),
5186 }
5187 }
5188
5189 fn gpu_resources(count: Option<u32>) -> ResourceRequirements {
5190 ResourceRequirements {

Callers 2

gpu_device_ids_configFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected