VCPUOptions returns the allowed vCPU counts for a configuration.
(gpuType string, numGPUs int)
| 138 | |
| 139 | // VCPUOptions returns the allowed vCPU counts for a configuration. |
| 140 | func (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. |
| 149 | func (s *SpecStore) NeedsGPUCountPhase(gpuType string) bool { |