Introduction MPI
Introduction into distributed memory
programming with MPI
Contents:
- Distributed Memory, Message Passing
- OpenMPI(home, doc)
as distributed memory programming environment
- Basic funtions
- rank, size
- send, recv (blocking, synchronized)
- collective operations: reduce, gather, scatter, broadcast
Demonstration:
- Scalar product [par/skalar]
- Avoid warnings caused by OpenMPI:
make run 2>&1 | grep
-v openmpi
- Greetings
- Show Jacobi iterative solver
Available compilers:
- GNU:
- Performance analyzer: gprof (kprof); valgrind
(kcachegrind)
- Memory analyzer: valgrind
- Thread analyzer: helgrind
finds data race