How do I submit an interactive job?

When testing your code, sometimes it can be helpful to submit an interactive job to the scheduler.

Make sure that you don’t test computationally demanding jobs on the head node (i.e., the one you log into to submit jobs) as this can negatively impact other discovery users.

To submit an interactive job use the mksub -I flag.

For example, if you want to submit an interactive job on a single node with 2 CPUs for 3 hours, use this command:

mksub -I -l nodes=1:ppn=2 -l walltime=3:00:00

See the Research Computing tutorial for more information.

The previous answer is now outdated.

To submit an interactive job using slurm use the srun command.

For example,

srun --pty /bin/bash

If you would like more control over the resources you are requesting:

srun --nodes=1 --ntasks-per-node=2 --mem-per-cpu=2GB --cpus-per-task=1 --pty /bin/bash

See the Research Computing tutorial for more information.