-
Notifications
You must be signed in to change notification settings - Fork 360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WX-1810 WX-1830 n1/n2/n2d machine types, cpuPlatform on GCPBATCH #7518
Conversation
1372cff
to
b24f569
Compare
googleLegacyMachineSelection = false, | ||
jobLogger = jobLogger | ||
) | ||
val instancePolicy = createInstancePolicy(cpuPlatform, spotModel, accelerators, allDisks, machineType) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider using named arguments to avoid confusing cpuPlatform/machineType because both are strings.
// Similarly, CPU platform of AMD Rome corresponds to the machine type n2d. | ||
val customMachineType = | ||
cpuPlatformOption match { | ||
case Some(GcpBatchRuntimeAttributes.CpuPlatformIntelCascadeLakeValue) => N2CustomMachineType | ||
case Some(GcpBatchRuntimeAttributes.CpuPlatformIntelIceLakeValue) => N2CustomMachineType |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can cover this with tests at GcpBatchMachineConstraintsSpec
Addreses #7474 |
…e backend (#1) * WX-1810 WX-1830 n1/n2/n2d machine types, cpuPlatform on GCPBATCH (broadinstitute#7518) * feat: [GCP Batch] Support passing standard machine types to the Google backend --------- Co-authored-by: Miguel Covarrubias <mcovarr@users.noreply.github.com>
Description
Uses
GcpBatchMachineConstraints#machineType
to choose the appropriate machine type for GCP Batch.Release Notes Confirmation
CHANGELOG.md
CHANGELOG.md
in this PRCHANGELOG.md
because it doesn't impact community usersTerra Release Notes