This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
guide:induction1 [2020/03/27 09:15] kevin created |
guide:induction1 [2021/12/09 16:42] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ======CHPC Induction====== | ======CHPC Induction====== | ||
| - | This is an introduction to the practical aspects of using the CHPC //Lengau// cluster. | + | This is an introduction to the practical aspects of using the CHPC //Lengau// cluster. This page is an abbreviated overview of the full short course. |
| + | |||
| + | > Links to slides and videos will be added later. | ||
| =====Connecting to Lengau===== | =====Connecting to Lengau===== | ||
| Line 12: | Line 14: | ||
| </ | </ | ||
| where you will need to replace '' | where you will need to replace '' | ||
| + | |||
| + | > If you do not have an account on Lengau as part of a CHPC research programme then you will be provided with a temporary '' | ||
| For more information on **ssh** see the // | For more information on **ssh** see the // | ||
| Line 37: | Line 41: | ||
| The first part is a welcome message. | The first part is a welcome message. | ||
| - | Please take note of the '' | + | Please take note of the '' |
| + | |||
| + | The part after the colon, and before the '' | ||
| Here are a few basic Linux commands which you can use: | Here are a few basic Linux commands which you can use: | ||
| Line 47: | Line 53: | ||
| / | / | ||
| - | Note: '' | + | Note: '' |
| - | + | ||
| ls | ls | ||
| | | ||
| The '' | The '' | ||
| + | |||
| + | cd dir | ||
| + | |||
| + | Change directory to '' | ||
| + | |||
| + | > The lecturer will demonstrate the most commonly used commands. | ||
| + | |||
| + | =====Work Sheet===== | ||
| + | |||
| + | The practical portion of this short course uses a {{: | ||
| + | |||
| + | =====Interactive Job===== | ||
| + | |||
| + | The login nodes are not for any substantive computation, | ||
| + | |||
| + | < | ||
| + | qsub -I | ||
| + | </ | ||
| + | |||
| + | You will then see (after a short delay) a display similar to: | ||
| + | |||
| + | < | ||
| + | login2:~$ qsub -I -q serial -l select=1: | ||
| + | qsub: waiting for job 2665052.sched01 to start | ||
| + | qsub: job 2665052.sched01 ready | ||
| + | |||
| + | cnode0040: | ||
| + | </ | ||
| + | Note that you are now connected to a //compute node// as indicated by the prompt: you are on '' | ||
| + | |||
| + | |||
| + | =====First Job Script===== | ||
| + | |||
| + | <code bash> | ||
| + | #!/bin/bash | ||
| + | #PBS -N example01 | ||
| + | #PBS -l select=1: | ||
| + | #PBS -P Wchpc | ||
| + | #PBS -q smp | ||
| + | #PBS -l walltime=0: | ||
| + | |||
| + | CWD=/ | ||
| + | |||
| + | |||
| + | |||
| + | cd $CWD | ||
| + | echo " | ||
| + | nproc=`cat $PBS_NODEFILE | wc -l` | ||
| + | echo "nproc is $nproc" | ||
| + | echo "Nodes used by this job:" | ||
| + | cat $PBS_NODEFILE | ||
| + | |||
| + | echo " | ||
| + | # Insert command to run here: | ||
| + | |||
| + | echo "... done." | ||
| + | </ | ||
| + | |||
| + | > The lecturer will explain this script and you will be able to write notes in your {{: | ||
| + | |||
| + | |||