Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/OpenShell
/ gpu_count
Method
gpu_count
crates/openshell-driver-vm/src/gpu.rs:52–54 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
50
}
51
52
pub fn gpu_count(&self) -> u32 {
53
u32::try_from(self.slots.len()).unwrap_or(u32::MAX)
54
}
55
56
pub fn available_count(&self) -> u32 {
57
u32::try_from(
Callers
nothing calls this directly
Calls
1
len
Method · 0.80
Tested by
no test coverage detected