Skip to main content

more options


Differences Between Serial and Parallel Batch Jobs

Serial and Parallel batch jobs differ in the following ways:

  1. The program must be compiled with a parallel library (MPI).
  2. The communication mode can be specified for parallel jobs. 
    Set MPI_COMM=TCP
  3. Call vsched -m to create a file called machines which lists the nodes allocated to your job.
    mpdboot -n $NMACHINES -f /tmp/machines
  4. Use mpirun (Windows) or mpiexec (Linux) to run the MPI program executable on all nodes listed in the machines file.
  5. Specify the number of nodes in your xml file:
    <nodes>5</nodes>
  6. Specify number of tasks with -np in the mpirun command or -n in the mpiexec command:
    Windows: mpirun -np 10 myprog.exe
    Linux: mpiexec -n 2 myexe 
  7. Be careful to put your files on the appropriate nodes, and later to get your output from all nodes.
  8. Before you run:
    Windows: run mpipasswd
    Linux: check your ssh setup

Serial and Parallel batch jobs differ in the following ways:

  1. The program must be compiled with a parallel library (MPI).
  2. The communication mode can be specified for parallel jobs. 
    Set MPI_COMM=TCP
  3. Call vsched -m to create a file called machines which lists the nodes allocated to your job.
    Note: If you have @echo on in your script, vsched -m will disable it. Reissue @echo on after vsched -m to turn it back on.
  4. For Linux: start mpd (mpich message passing daemon) on every machine listed in your machines file.
  5. For Linux: start mpd (mpich message passing daemon) on every machine listed in your machines file.
    mpdboot -n $NMACHINES -f /tmp/machines
  6. Use mpirun (Windows) or mpiexec (Linux) to run the MPI program executable on all nodes listed in the machines file.
  7. Specify the number of nodes in your xml file:
    <nodes>5</nodes>
  8. Specify number of tasks with -np in the mpirun command or -n in the mpiexec command:
    Windows: mpirun -np 10 myprog.exe
    Linux: mpiexec -n 2 myexe 
  9. Be careful to put your files on the appropriate nodes, and later to get your output from all nodes.
  10. Before you run:
    Windows: run mpipasswd
    Linux: check your ssh setup