Ubuntu HPC Execute parallel jobs

From Notes_Wiki
Revision as of 10:30, 28 February 2023 by Saurabh (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Home > Ubuntu > HPC setup with openpbs and openmpi > Execute parallel jobs

  1. Login as user1
  2. 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
  3. Submit the jobs
    qsub load.sh
  4. Check the job running status
    qstat -a
  5. Login to all nodes, check the cpu usage
    htop


Home > Ubuntu > HPC setup with openpbs and openmpi > Execute parallel jobs