Configure CUDA device selection: Difference between revisions
Content deleted Content added
| m update deprecated source tags | m fix syntax error | ||
| Line 35: This is what we will solve by setting the environment variable <code>CUDA_VISIBLE_DEVICES</code>. There are two possible formats. It can either have a value like <code=>0,1</code> or a more explicit value like <code>GPU-5060f556-4eb4-7155-4020-abadcb2fd735,GPU-f3825978-37f8-b933-5327-583196d560cd</code> using the identifiers from the <code>nvidia-smi</code> output.  The short format just affects the default order. If you find using <code>-pu0</code> with TUFLOW selects the GPU you'd consider #1 and vice versa, you could set <code>CUDA_VISIBLE_DEVICES</code> to <code You can either set the value of the environment variable at the start of scripts you use to run your models, like batch files, PowerShell scripts, or Linux shell scripts, or you can set it globally so that it automatically applies to all running applications. | |||