Ubuntu HPC Execute parallel jobs

From Notes_Wiki

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