|
|
# Choosing which GPU to Use
|
|
|
|
|
|
> :warning: Thesis students only have access to `philae.polito.it`, which does not have a GPU installed (see ["Servers Information"](/servers)). So, this page is only for other group members.
|
|
|
|
|
|
On servers that equip multiple GPUs, it is common to have one unit more intensively used than the other(s). It is your responsibility to execute your tasks on the GPU that is currently less busy, in order to avoid problems associated with exceeding the available GPU memory (see ["Monitoring Resources"](/monitoring)).
|
|
|
|
|
|
The GPU(s) made available to your scripts are controlled by the `CUDA_VISIBLE_DEVICES` environment variable. From most command line shells (e.g., bash, zsh, etc.), you can export this variable with the following command:
|
... | ... | |