Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 302 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 302 Bytes

Word count using MPI and c++

prerequisites

  • g++
  • mpich

to compile code

use the mpic++ command not g++

mpic++ main.cpp Map.cpp Combiner.cpp  Reduce.cpp 

to run code

use the mpirun command with -np to specify number of proc

 mpirun -np 4 a.out