Use the srun command to start an interactive session. Detailed documentation on using srun is available in the official SLURM docs from SchedMD.
The general command syntax to start an interactive session is:
srun -p {partition} -A {your_slurm_account_name} --cpus-per-task={number_of_cores} --mem={integer_gigabytes}G --pty bash
For example, if we want to start a session with the following specifications:
Run the following command:
srun -p qCPU24 -A AAS3S2 --nodes=1 --ntasks-per-node=1 --cpus-per-task=1 --time=01:00:00 --mem=8G --pty bash
srun -p qGPU24 -A AAS3S2 --nodes=1 --ntasks-per-node=1 --cpus-per-task=1 --gres=gpu:1 --time=01:00:00 --mem=8G --pty bash
This is very similar to the command above, with two key differences:
--gresTo load the software modules for your interactive session, use EasyBuild with module load commands. See how to find the available modules here: https://arcwiki.rs.gsu.edu/en/Easybuild/load-easybuild-installed-software
For example, to load the R programming language:
module load R
To load Python 3.7.7:
module load Python/3.7.7