User Tools

Site Tools


workshops:hpcprac2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
workshops:hpcprac2 [2017/07/04 09:53]
kevin
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 30: Line 30:
 **Note:** **Note:**
   * ''-I'' selects an //interactive// job   * ''-I'' selects an //interactive// job
-  * you still must specify the project ''Wchpc'' +  * you must specify the project ''Wchpc'' 
-  * the queue must be ''R522145''+  * the queue is ''R522145''
   * you need to specify the ''training'' group.   * you need to specify the ''training'' group.
  
Line 42: Line 42:
 If you find your interactive session timing out too soon then add ''-l walltime=4:0:0'' to the above command line to request the maximum 4 hours. If you find your interactive session timing out too soon then add ''-l walltime=4:0:0'' to the above command line to request the maximum 4 hours.
  
 +=====OpenMP Part I=====
  
-====Job Control====+To carry out the exercises in the first OpenMP practical you must run the examples on a compute node and **not** the login node.
  
-To check the status on your jobs in the Winter School queue:+After logging on to lengau, the first thing you will do is request an interactive session on a compute node:
  
-  qstat | grep R522145+  qsub -I -P Wchpc 
 +   
 +Your prompt will change to something like:
  
-This command lists all the jobs in the **R522145** queue.  Running jobs will have a ''R'' in the status column, a ''Q'' if the job is queued and waiting.  +  [student00@cnode0004 ~]$
  
 +Remember, this is a login shell so you can change the environment as before, for example, change the prompt with
 +
 +  export PS1='\h:\w\$ '
 +
 +and now see
 +
 +  cnode0004:~$ 
 +
 +====Practical 2 Worksheet====
 +
 +Download and follow the {{:workshops:tut.pdf|worksheet}}.
 +
 +Copy the //OpenMP_Tut.tar.gz// file from the student00 home directory to your home directory.
 +
 +  cp ~/../student00/OpenMP_Tut.tar.gz ~/lustre
 +  
 +  cd ~/lustre
 +
 +Then untar (unpack) it.
 +
 +  tar -zxvf OpenMP_Tut.tar.gz
 +
 +And then go into the //OpenMP/// tut directory and start the practical.  Have fun!
 +
 +=====OpenMP Part II=====  
 +
 +====Job Script====
 +
 +Most of the prac can be done in an interactive session.
  
/app/dokuwiki/data/attic/workshops/hpcprac2.1499154789.txt.gz · Last modified: 2021/12/09 16:42 (external edit)