Graphical Processing Units (GPUs) are a kind of computer processor. They can accelerate certain tasks that are specifically coded to use them, providing faster turnaround and cost savings compared to virtual machines (VMs) only using traditional CPUs. Learn how to set runtime parameters to use GPUs rather than standard CPU-only VMs when running a workflow.
What Are GPUs?
GPUs were originally developed to process graphical information for video games, which require extremely fast rendering to make the graphics realistic. GPUs specialize in handling certain types of calculations for graphical data very efficiently. In the computational biology world, GPUs are commonly used for
- Training a neural network (note that using the trained network is usually done on CPU)
- Any other scientific computing applications that require a lot of matrix or vector operations
How to set WDL runtime parameters to use GPUs
|
|
---|---|
Note: To use GPUs, your tool (inside the WDL wrapper) must support GPUs and have If you use these GPU parameters but your WDL does not use or support them, |
runtime {
gpuType: "nvidia-tesla-k80"
gpuCount: 2
nvidiaDriverVersion: "418.87.00"
zones: ["us-central1-c"]
}
Once you adjust the WDL runtime parameters in the Broad Methods Repository, you will see a new snapshot of the workflow to run. You don't need to export this workflow to Terra again. Just go to the Workflow tab to toggle between the snapshots when you click into the workflow.
|
|
---|---|
For the official "readthedocs" about configuring the runtime to use GPUs, see For GPU regions and zones availability, see |