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:11] – 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==== | ||
| + | ^cmd^Descr^ | ||
| + | |squeue|Show all jobs on the queue| | ||
| + | |sinfo|Information about the cluster| | ||
| + | |sbatch < | ||
| + | |sacct|My jobs| | ||
| + | |srun|Run job interactively| | ||
| + | |scancel < | ||
| + | |nvidia-smi|info about GPU| | ||
| \\ | \\ | ||
| The template script file looks like this\\ | The template script file looks like this\\ | ||
| Line 20: | Line 43: | ||
| * Python 3.10.12\\ | * Python 3.10.12\\ | ||
| * pip 22.0.2\\ | * pip 22.0.2\\ | ||
| + | |||
| + | ==Additional information== | ||
| + | [[https:// | ||