Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| cluster:gpuwork [2025/03/27 09:18] – bjorn | cluster:gpuwork [2025/03/27 09:27] (current) – bjorn | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| - Python3 has a module venv which can be used to create your environment (python3 -m venv myProject)\\ | - Python3 has a module venv which can be used to create your environment (python3 -m venv myProject)\\ | ||
| - Another way is to install virtualenv with Pip (pip install virtualenv)\\ | - Another way is to install virtualenv with Pip (pip install virtualenv)\\ | ||
| - | - Miniconda | + | - Miniconda |
| User can also download and install :\\ | User can also download and install :\\ | ||
| - [[https:// | - [[https:// | ||
| - [[https:// | - [[https:// | ||
| \\ | \\ | ||
| - | == An example setup == | + | == An example setup for Torch == |
| + | * python3 -m venv myproject | ||
| + | * source myproject/ | ||
| + | * pip install torch wheel | ||
| \\ | \\ | ||
| + | Please make sure your script can communicate with the GPU, do a test-script before running your project\\ | ||
| ====Useful commands==== | ====Useful commands==== | ||
| ^cmd^Descr^ | ^cmd^Descr^ | ||
| Line 22: | Line 26: | ||
| |srun|Run job interactively| | |srun|Run job interactively| | ||
| |scancel < | |scancel < | ||
| + | |nvidia-smi|info about GPU| | ||
| \\ | \\ | ||
| The template script file looks like this\\ | The template script file looks like this\\ | ||