Difference between revisions of "Ubuntu HPC Execute parallel jobs"
From Notes_Wiki
|  (Created page with "Home > Ubuntu > HPC setup with openpbs and openmpi > Execute parallel jobs  #Login as user1 # Create '<tt>~/load.sh</tt>' file with the below information <source type="shell"> #! /bin/bash #PBS -N stressjob #PBS -q testq1 #PBS -V #PBS -l nodes=3 module load mpi/mpi-4.1.1 mpirun -host node1,node2,node3  -n 3 /usr/bin/stress --cpu 2 --vm 5 --vm-bytes 1G --timeout 60s </sour...") | 
| (No difference) | 
Latest revision as of 10:30, 28 February 2023
Home > Ubuntu > HPC setup with openpbs and openmpi > Execute parallel jobs
- Login as user1
- Create '~/load.sh' file with the below information #! /bin/bash #PBS -N stressjob #PBS -q testq1 #PBS -V #PBS -l nodes=3 module load mpi/mpi-4.1.1 mpirun -host node1,node2,node3 -n 3 /usr/bin/stress --cpu 2 --vm 5 --vm-bytes 1G --timeout 60s - In above replace nodes=3 and --host node1,node2,node3 -n 3 etc. appropriately based on environment
 
- Submit the jobs
- qsub load.sh
 
 
- Check the job running status
- qstat -a
 
 
- Login to all nodes, check the cpu usage
- htop
 
 
Home > Ubuntu > HPC setup with openpbs and openmpi > Execute parallel jobs

