RamPerVCPU returns the RAM per vCPU in GiB for a configuration.
(gpuType string, numGPUs int)
| 161 | |
| 162 | // RamPerVCPU returns the RAM per vCPU in GiB for a configuration. |
| 163 | func (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. |
| 172 | func (s *SpecStore) StorageRange(gpuType string, numGPUs int) (int, int) { |