-
Notifications
You must be signed in to change notification settings - Fork 374
AN-735 WDL 1.1: gpu requirement attribute #7821
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
base: develop
Are you sure you want to change the base?
Conversation
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.
LGTM 👍
| If `true`, Cromwell will attempt to ensure that the task can run in an environment with GPU support. The task will be | ||
| failed if we can't confirm a GPU is available. | ||
|
|
||
| - Google Cloud: Cromwell will attempt to examine other runtime attributes such as `gpuCount`, `gpuType`, `predefinedMachineType` to determine whether the task is configured to use a GPU, and fail the task if it is not. |
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.
It would be good to include detail that answers the following user concern:
I use GPUs on Batch, are you saying I need to go through all my WDLs and add
gpu: true?! 😖
| val supportsGpu: Boolean = | ||
| machineType.toLowerCase.contains("nvidia") || | ||
| machineType.toLowerCase.contains("gpu") || | ||
| machineType.toLowerCase.matches("^g[0-9]*-.*") |
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.
e.g. a2-highgpu-1g
| machineType.toLowerCase.matches("^g[0-9]*-.*") | |
| machineType.toLowerCase.matches("^[ga][0-9]*-.*") |
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.
That machine a2-highgpu-1g is covered by the line above, though, .contains("gpu"), right?
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.
Oh I see, I didn't think of that. Disregard if you don't feel it's necessary.
Description
Adds the
gpuruntime attribute required by WDL 1.1. (spec)This check is implemented in two steps:
JobPreparationActorand tasks are failed if they require GPU and are running on a backend that doesn't support it.*BatchRuntimeAttributescreation.Release Notes Confirmation
CHANGELOG.mdCHANGELOG.mdin this PRCHANGELOG.mdbecause it doesn't impact community usersTerra Release Notes