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:13] – bjorn | cluster:gpuwork [2025/03/27 09:27] (current) – bjorn | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| The first step for users is to make sure their working environment fits their needs, might have to be reconfigure.\\ | The first step for users is to make sure their working environment fits their needs, might have to be reconfigure.\\ | ||
| User can install different version of Python and all necessary modules for their work.\\ | User can install different version of Python and all necessary modules for their work.\\ | ||
| + | We recommend using Python virtual environment, | ||
| + | Creating your virtual environment\\ | ||
| + | - 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)\\ | ||
| + | - Miniconda or Ancaonda\\ | ||
| + | User can also download and install :\\ | ||
| + | - [[https:// | ||
| + | - [[https:// | ||
| \\ | \\ | ||
| + | == 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 12: | 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\\ | ||