user@jose-t14s:~$ ssh phoebe.fzu.cz -l jose
Welcome at CEICO (www.ceico.cz) computing facilities :)
Last login: Tue Jan 30 16:58:54 2024 from phoebe-gw.fzu.cz
[user@login1 ~]$
Here we create slurm session with name "session007":
[user@login1 ~]$ screen -S session007
In this example, we'll request resources in gpu2 [partition](Slurm partitions).
srun --part=gpu_int --job-name "interactiveshell"
--cpus-per-task=128 --mem=128G --time=24:00:00 --gres=gpu:a100:2 --pty
/bin/bash
[user@login1 ~]$ srun --part=gpu2 --job-name "interactivesheell" --cpus-per-task=16 --mem=128G --time=24:00:00 --pty /bin/bash
srun: job 1962744 queued and waiting for resources
srun: job 1962744 has been allocated resources
[user@gpu2 ~]$
Upon initiation, the shell opens, granting access for interactive tasks on the designated node — such as launching IPython sessions. Note that the job is set to conclude within a designated timeframe, as illustrated in this instance, within 24 hours.
Note, that the prompt changed from user@login1
to user@gpu2
, indicating that we were assigned resources at compute node gpu2
.