Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ECE/CS 569 High-Performance Processors and Systems

Running MPI Program using Makefile

  • Compile:
cd makefileExample
make all
mpicxx -O3 -o simple simple.cpp
➜  makefileExample mpirun -np 4 ./simple
  • Execute:
mpirun -np 4 ./simple
Total ranks: 4, current rank: 0
Chrono Time: 7.7422e-05
MPI Time: 6.9533e-05
Total ranks: 4, current rank: 1
Chrono Time: 7.3499e-05
MPI Time: 6.7903e-05
Total ranks: 4, current rank: 2
Chrono Time: 7.2819e-05
MPI Time: 6.7041e-05
Total ranks: 4, current rank: 3
Chrono Time: 7.3504e-05
MPI Time: 7.2274e-05
  • Clean:
make clean
rm -f simple

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages