This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
workshops:hpcprac2 [2017/07/04 09:18] kevin created |
workshops:hpcprac2 [2021/12/09 16:42] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | =====Practical 2: Using CHPC===== | + | =====Practical 2: OpenMP & Using CHPC===== |
| **Aim:** to launch a parallel job on the CHPC cluster //Lengau//. | **Aim:** to launch a parallel job on the CHPC cluster //Lengau//. | ||
| Line 28: | Line 28: | ||
| qsub -I -P Wchpc -q R522145 -W group_list=training | qsub -I -P Wchpc -q R522145 -W group_list=training | ||
| + | **Note:** | ||
| + | * '' | ||
| + | * you must specify the project '' | ||
| + | * the queue is '' | ||
| + | * you need to specify the '' | ||
| + | |||
| + | **Advanced options:** | ||
| + | * '' | ||
| + | * interactive jobs only get one node: '' | ||
| + | * you can request all the cores on the node: '' | ||
| + | * you can run MPI code: indicate how many ranks you want with '' | ||
| + | |||
| + | If you find your interactive session timing out too soon then add '' | ||
| + | |||
| + | =====OpenMP Part I===== | ||
| + | |||
| + | To carry out the exercises in the first OpenMP practical you must run the examples on a compute node and **not** the login node. | ||
| + | |||
| + | After logging on to lengau, the first thing you will do is request an interactive session on a compute node: | ||
| + | |||
| + | qsub -I -P Wchpc | ||
| + | | ||
| + | Your prompt will change to something like: | ||
| + | |||
| + | [student00@cnode0004 ~]$ | ||
| + | |||
| + | Remember, this is a login shell so you can change the environment as before, for example, change the prompt with | ||
| + | |||
| + | export PS1=' | ||
| + | |||
| + | and now see | ||
| + | |||
| + | cnode0004: | ||
| + | |||
| + | ====Practical 2 Worksheet==== | ||
| + | |||
| + | Download and follow the {{: | ||
| + | |||
| + | Copy the // | ||
| + | |||
| + | cp ~/ | ||
| + | | ||
| + | cd ~/lustre | ||
| + | |||
| + | Then untar (unpack) it. | ||
| + | |||
| + | tar -zxvf OpenMP_Tut.tar.gz | ||
| + | |||
| + | And then go into the //OpenMP/// tut directory and start the practical. | ||
| + | |||
| + | =====OpenMP Part II===== | ||
| + | |||
| + | ====Job Script==== | ||
| + | |||
| + | Most of the prac can be done in an interactive session. | ||