Skip to content

Commit

Permalink
Machine size alias for Nvidia A10 cards (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
dangra committed Apr 23, 2024
1 parent ac9e111 commit 759bab7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions machine_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,8 @@ func (mg *MachineGuest) ToSize() string {
return "a100-80gb"
case mg.GPUKind == "l40s":
return "l40s"
case mg.GPUKind == "a10":
return "a10"
case mg.CPUKind == "shared":
return fmt.Sprintf("shared-cpu-%dx", mg.CPUs)
case mg.CPUKind == "performance":
Expand Down Expand Up @@ -437,6 +439,7 @@ var MachinePresets map[string]*MachineGuest = map[string]*MachineGuest{
"a100-40gb": {GPUKind: "a100-pcie-40gb", GPUs: 1, CPUKind: "performance", CPUs: 8, MemoryMB: 16 * MIN_MEMORY_MB_PER_CPU},
"a100-80gb": {GPUKind: "a100-sxm4-80gb", GPUs: 1, CPUKind: "performance", CPUs: 8, MemoryMB: 16 * MIN_MEMORY_MB_PER_CPU},
"l40s": {GPUKind: "l40s", GPUs: 1, CPUKind: "performance", CPUs: 8, MemoryMB: 16 * MIN_MEMORY_MB_PER_CPU},
"a10": {GPUKind: "a10", GPUs: 1, CPUKind: "performance", CPUs: 8, MemoryMB: 16 * MIN_MEMORY_MB_PER_CPU},
}

type MachineMetrics struct {
Expand Down

0 comments on commit 759bab7

Please sign in to comment.