Skip to content

Instantly share code, notes, and snippets.

@icaoberg
Last active December 4, 2015 20:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icaoberg/2c36fe6cbdfe48328c69 to your computer and use it in GitHub Desktop.
Save icaoberg/2c36fe6cbdfe48328c69 to your computer and use it in GitHub Desktop.
Requesting an interactive session on lanec1.compbio.cs.cmu.edu using SLURM
# These are some of the options you can use when requesting an interactive session
# -p, --partition=partition --> partition requested (the current public partitions include short1 and interactive)
# -N, --nodes=N --> number of nodes on which to run (N = min[-max])
# --ntasks-per-node --> number of tasks per node
# -c, --cpus-per-task=ncpus --> number of cpus required per task
# --pty --> run task zero in pseudo terminal
#request a session on short1
srun --partition=short1 --nodes=1 --cpus-per-task=1 --ntasks-per-node=1 --pty bash
#request a session on interactive
srun --partition=interactive --nodes=1 --cpus-per-task=1 --ntasks-per-node=1 --pty bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment