IncludedVCPUs returns the minimum (included) vCPU count for a configuration.
(gpuType string, numGPUs int)
| 152 | |
| 153 | // IncludedVCPUs returns the minimum (included) vCPU count for a configuration. |
| 154 | func (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. |
| 163 | func (s *SpecStore) RamPerVCPU(gpuType string, numGPUs int) int { |