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

Method RamPerVCPU

utils/spec_store.go:163–169  ·  view source on GitHub ↗

RamPerVCPU returns the RAM per vCPU in GiB for a configuration.

(gpuType string, numGPUs int)

Source from the content-addressed store, hash-verified

161
162// RamPerVCPU returns the RAM per vCPU in GiB for a configuration.
163func (s *SpecStore) RamPerVCPU(gpuType string, numGPUs int) int {
164 spec := s.Lookup(gpuType, numGPUs)
165 if spec == nil {
166 return 8
167 }
168 return spec.RamPerVCPUGiB
169}
170
171// StorageRange returns the min/max storage for a configuration.
172func (s *SpecStore) StorageRange(gpuType string, numGPUs int) (int, int) {

Callers 4

TestRamPerVCPUFunction · 0.80
renderComputeStepMethod · 0.80
ViewMethod · 0.80

Calls 1

LookupMethod · 0.95

Tested by 1

TestRamPerVCPUFunction · 0.64