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

Method VCPUOptions

utils/spec_store.go:140–146  ·  view source on GitHub ↗

VCPUOptions returns the allowed vCPU counts for a configuration.

(gpuType string, numGPUs int)

Source from the content-addressed store, hash-verified

138
139// VCPUOptions returns the allowed vCPU counts for a configuration.
140func (s *SpecStore) VCPUOptions(gpuType string, numGPUs int) []int {
141 spec := s.Lookup(gpuType, numGPUs)
142 if spec == nil {
143 return nil
144 }
145 return spec.VcpuOptions
146}
147
148// NeedsGPUCountPhase reports whether the GPU type supports multiple GPU counts.
149func (s *SpecStore) NeedsGPUCountPhase(gpuType string) bool {

Callers 15

IncludedVCPUsMethod · 0.95
TestVCPUOptionsFunction · 0.80
trySkipModifyComputeMethod · 0.80
handleEnterMethod · 0.80
getMaxCursorMethod · 0.80
computePreviewPriceMethod · 0.80
renderComputeStepMethod · 0.80
trySkipComputeMethod · 0.80
handleEnterMethod · 0.80
getMaxCursorMethod · 0.80
ViewMethod · 0.80

Calls 1

LookupMethod · 0.95

Tested by 1

TestVCPUOptionsFunction · 0.64