Skip to content

How Run the Program

Hasan Heydari edited this page Jun 4, 2018 · 14 revisions

Here, a guide for running the program on Ubuntu is explained.

  • Run the following commands:
  1. $ sudo apt-get install build-essential
  2. $ sudo apt-get update
  3. $ sudo apt-get install mpich
  • Download DMIS-MPICH program and extract it (Suppose that it is located in ~/DMPI-MPICH).
  • Run the following commands
  1. $ cd ~/DMPI-MPICH
  2. $ mpic++ -o main main.cpp node.cpp misAlgorithm.cpp
  3. $ mpirun -n X ./main ~/DMPI-MPICH/Input ~/DMPI-MPICH/Output (X is the number of nodes of the input network; for example, if the number of nodes is 18, then enter $ mpirun -n 18 ./main ~/DMPI-MPICH/Input ~/DMPI-MPICH/Output)

Notes

  • The Output is inserted in Output folder. For each node of the input network, a file, that contains the status of the node (the result of the program) and other related data, is generated.
  • The Input folder should be created as described here.