Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
MVPR-common
GPU server instructions
Commits
26a639c4
Commit
26a639c4
authored
Mar 24, 2021
by
Lasse Lensu
Browse files
Update for selecting a specific GPU
parent
48467054
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
26a639c4
...
...
@@ -35,14 +35,18 @@ responsibly. If your computations do not require all the available GPUs consider
specifying $CUDA_VISIBLE_DEVICES variable in your environment, e.g., to set only
GPU with index 1 visible:
```
export CUDA_DEVICE_ORDER=PCI_BUS_ID
export CUDA_VISIBLE_DEVICES=1
```
or in python
```
python
import
os
os
.
environ
[
"CUDA_DEVICE_ORDER"
]
=
"PCI_BUS_ID"
os
.
environ
[
"CUDA_VISIBLE_DEVICES"
]
=
"1"
```
(The environment variable $CUDA_DEVICE_ORDER makes the GPU IDs to be identical
with the command nvidia-smi.)
Some frameworks (e.g. TensorFlow) are greedy and they allocate resources on all
the available devices while utilizing only one of them effectively. By
explicitly specifying which GPU device you need you do not block other users
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment