Using the P4-Xeon cluster HPCCC, Science Faculty, HKBU sSh key generation To make use of multiple nodes in the PC cluster. users are restricted to use ssh Key generation is done once automatically during first login You may input a passphrase to protect the ey pair The key pair is stored in your HOME/ ssh/
Using the P4-Xeon cluster HPCCC, Science Faculty, HKBU ssh key generation • To make use of multiple nodes in the PC cluster, users are restricted to use ssh. • Key generation is done once automatically during first login • You may input a passphrase to protect the key pair • The key pair is stored in your $HOME/.ssh/
Using the P4-Xeon cluster HPCCC, Science Faculty, HKBU User Policy Users are allowed to remote login from other networked Pcs in hKbu All users must use their own user account to login The master node(frontend) is used only for login, simple editing of program source code, preparing the job dispatching script and dispatching of jobs to compute node. No foreground or background can be run on it Dispatching of jobs must be done via the OpenPBs system
Using the P4-Xeon cluster HPCCC, Science Faculty, HKBU User Policy • Users are allowed to remote login from other networked PCs in HKBU. • All users must use their own user account to login. • The master node (frontend) is used only for login, simple editing of program source code, preparing the job dispatching script and dispatching of jobs to compute node. No foreground or background can be run on it. • Dispatching of jobs must be done via the OpenPBS system
Using the P4-Xeon cluster HPCCC, Science Faculty, HKBU OpenPBs system Provide a fair and efficient job dispatching and queuing system to the cluster PBS script shall be written for running job Either sequential or parallel jobs can be handled by pbs Jobs error and output are stored in different filenames according to job IDs
Using the P4-Xeon cluster HPCCC, Science Faculty, HKBU OpenPBS system • Provide a fair and efficient job dispatching and queuing system to the cluster • PBS script shall be written for running job • Either sequential or parallel jobs can be handled by PBS • Jobs error and output are stored in different filenames according to job IDs
Using the P4-Xeon cluster HPCCC, Science Faculty, HKBU PBS Script example(sequential) #!/bin/bash #PBS -I nodes=1 #PBS-N prime #PBS-m ae #PBS-q default t the above is the pbs directive used in batch queue Assume that you placed the executable in /ul/local/share/pbsexamples echo Running on host hostname /ul/local/share/pbsexamples/prime 216091 PBS scripts are shell script with directives pI receding ng with #PBs The above example request only I node and deliver the job named prime? in default queue The PBs system will mail a message after the job executed
Using the P4-Xeon cluster HPCCC, Science Faculty, HKBU PBS script example (sequential) • PBS scripts are shell script with directives preceding with #PBS • The above example request only 1 node and deliver the job named ‘prime’ in default queue. • The PBS system will mail a message after the job executed. #!/bin/bash #PBS -l nodes=1 #PBS -N prime #PBS -m ae #PBS -q default # the above is the PBS directive used in batch queue # Assume that you placed the executable in /u1/local/share/pbsexamples echo Running on host `hostname` /u1/local/share/pbsexamples/prime 216091
Using the P4-Xeon cluster HPCCC, Science Faculty, HKBU Delivering PBs job Prepare and compile executable cp/ul/local/share/pbsexamples/prime. c cC -o prime prime c -m Prepare and edit Pbs script as previous cp/ul/local/share/pbsexamples/prime. bat Submit the job qsub prime. bat
Using the P4-Xeon cluster HPCCC, Science Faculty, HKBU Delivering PBS job • Prepare and compile executable cp /u1/local/share/pbsexamples/prime.c . cc –o prime prime.c -lm • Prepare and edit PBS script as previous cp /u1/local/share/pbsexamples/prime.bat . • Submit the job qsub prime.bat