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

Method IncludedVCPUs

utils/spec_store.go:154–160  ·  view source on GitHub ↗

IncludedVCPUs returns the minimum (included) vCPU count for a configuration.

(gpuType string, numGPUs int)

Source from the content-addressed store, hash-verified

152
153// IncludedVCPUs returns the minimum (included) vCPU count for a configuration.
154func (s *SpecStore) IncludedVCPUs(gpuType string, numGPUs int) int {
155 opts := s.VCPUOptions(gpuType, numGPUs)
156 if len(opts) == 0 {
157 return 4 // safe default
158 }
159 return opts[0]
160}
161
162// RamPerVCPU returns the RAM per vCPU in GiB for a configuration.
163func (s *SpecStore) RamPerVCPU(gpuType string, numGPUs int) int {

Callers 5

runCreateFunction · 0.95
TestIncludedVCPUsFunction · 0.80
computePreviewPriceMethod · 0.80
computePreviewPriceMethod · 0.80
runModifyFunction · 0.80

Calls 1

VCPUOptionsMethod · 0.95

Tested by 1

TestIncludedVCPUsFunction · 0.64