-
Notifications
You must be signed in to change notification settings - Fork 10
IDUN
FlorianBeiser edited this page Sep 15, 2023
·
3 revisions
For general information and acc 8934 ess see: https://www.hpc.ntnu.no/idun/
-
Connect to VPN
-
Connect to login node, e.g.
ssh <username>@idun-login1.hpc.ntnu.no
-
Prepare environment, use
module available
to see list of available modules:
$ module load Python/3.7.4-GCCcore-8.3.0
$ module load CUDAcore/11.1.1
$ virtualenv gpuocean
$ source gpuocean/bin/activate
- Install all necessary packages in the environment, see the general README for a complete list.
$ pip install ...
Lets create job.slurm
as
#!/bin/sh
#SBATCH --partition=GPUQ
#SBATCH --account=<acount-name>
#SBATCH --time=00:01:00
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --gres=gpu:1
#SBATCH --constraint=gpu32g
#SBATCH --job-name="IDUNtest"
#SBATCH --output=IDUNtest.out
module purge
module load Python/3.7.4-GCCcore-8.3.0
module load CUDAcore/11.1.1
source gpuocean/bin/activate
export PYTHONPATH=${PYTHONPATH}:/cluster/home/floribei/havvarsel/gpuocean/src
python gpuocean/src/gpuocean/examples/dryrun.py
$ sbatch job.slurm
$ squeue -u <username>
$ scontrol show job <job-id>