Skip to content
GitLab
  • Explore
  • Sign in
  • EDA Guides
  • eda-servers-guide
  • Wiki
  • gpu select

gpu select · Changes

Page history
Update gpu select authored May 07, 2021 by Daniele Jahier Pagliari's avatar Daniele Jahier Pagliari
Show whitespace changes
Inline Side-by-side
gpu-select.md
View page @ 51304bf1
......@@ -2,4 +2,15 @@
> :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.
TO DO
\ No newline at end of file
On servers that equip multiple GPUs, it is common to have one unit more intensively used than the others. 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 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:
```
export CUDA_VISIBLE_DEVICES=0
```
The example above forces your script to use GPU0, whereas for example typing `=1` would let them use GPU1.
Most graphical IDEs that support remote deployment (see ["Remote Code Deployment"](/remote-code)) also allow you to set environment variables in the remote host. For example, you can do this in PyCharm by JetBrains by modifying the "Run Configuration" of your script. Check the documentation of your IDE for more details.
Clone repository
Home

Servers Information
Accounts
Connecting to the Servers
Storage Management and Quotas
Monitoring Resources
Software, Libraries and Data
  • Using Custom Software
  • Software Modules on Philae
  • Remote Code Deployment
  • Python Virtual Environments
  • EDA Technology Libraries
  • Shared Datasets
Miscellaneous Settings
  • Setting Up CUDA Libraries
  • Choosing which GPU to Use
  • Limiting GPU Memory
  • Limiting CPU Threads
Gitlab

Sidebar