Upgrade to Pro — share decks privately, control downloads, hide ads and more …

HPC Crash Course

HPC Crash Course

Crash course for using the ILRI, Kenya research computing cluster. Target audience was new biologists who have Illumina MiSeq data to analyze on the cluster, but were completely new to Linux (and come from a Windows/non-technical background).

Avatar for Alan Orth

Alan Orth

April 30, 2014
Tweet

More Decks by Alan Orth

Other Decks in Technology

Transcript

  1. Brief intro to Linux commands cd – change directory mkdir

    – make directory mv – move a file or directory cp – copy a file or folder rm - remove a file whoami – print the name of the current user who – print a list of other users who are logged in date – print the current date and time on the server echo – print text to the screen
  2. Linux command structure Linux commands come in various forms. Some

    are simple, and can be used by themselves: ls rm date
  3. Linux command structure ... other times you can add “arguments”

    to change the behavior of the command. Arguments are separated by one or more spaces: mkdir data Some commands require arguments (they don’t make sense to run by themselves, like mkdir).
  4. Common pitfalls with Linux commands - Case sensitive (Ls vs

    ls)! - Attention to detail (ls -l vs ls --l)! - Pasting from Word (“pretty” quotes, etc)! - Missing spaces - Using Windows-isms (\ vs /)! Google is your friend!
  5. Basic HPC Workflow Demonstrated [aorth@noma: ~]$ ssh hpc.ilri.cgiar.org [aorth@hpc: ~]$

    interactive salloc: Granted job allocation 5462 [aorth@compute2: ~]$
  6. SLURM: What you need to know - SLURM is the

    Simple Linux Utility for Resource Management - Manages CPUs and jobs on the cluster - Ensures everyone plays fair - Everyone gets ~20 CPUs by default - More info: http://hpc.ilri.cgiar.org/using-slurm Some commands: interactive - allocates resources for interactive shell (1 CPU) squeue - see a list of running / queued jobs scancel - cancel a job sbatch - submit a “batch” job (ie, not interactive)
  7. Accessing Software on HPC - Lots of software installed here!

    - Here’s a pretty up-to-date list: http://hpc.ilri.cgiar.org/list-of-software - Also, see the list using modules: module avail
  8. Accessing Software on HPC You can load a specific version

    of software module load blast/2.2.29+ blastn -query alan.fna -db nt List and unload modules with: module unload blast
  9. Rules of HPC Club - Use SLURM (interactive is your

    friend) - Try not to write to your home folder - Don’t run jobs on the head node (HPC) - If you crash the cluster you buy cookies for Alan - Don’t talk about HPC Club