MCPcopy Create free account
hub / github.com/Thunder-Compute/thunder-cli / NeedsGPUCountPhase

Method NeedsGPUCountPhase

utils/spec_store.go:149–151  ·  view source on GitHub ↗

NeedsGPUCountPhase reports whether the GPU type supports multiple GPU counts.

(gpuType string)

Source from the content-addressed store, hash-verified

147
148// NeedsGPUCountPhase reports whether the GPU type supports multiple GPU counts.
149func (s *SpecStore) NeedsGPUCountPhase(gpuType string) bool {
150 return len(s.GPUCounts(gpuType)) > 1
151}
152
153// IncludedVCPUs returns the minimum (included) vCPU count for a configuration.
154func (s *SpecStore) IncludedVCPUs(gpuType string, numGPUs int) int {

Callers 5

TestNeedsGPUCountPhaseFunction · 0.80
needsGPUCountPhaseMethod · 0.80
trySkipComputeMethod · 0.80
initStepMethod · 0.80
UpdateMethod · 0.80

Calls 1

GPUCountsMethod · 0.95

Tested by 1

TestNeedsGPUCountPhaseFunction · 0.64