https://github.com/peterrum/in2012-ws3-allreduce
https://github.com/peterrum/in2012-ws3-allreduce
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/peterrum/in2012-ws3-allreduce
- Owner: peterrum
- Created: 2016-11-14T16:52:08.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-03T13:47:56.000Z (over 9 years ago)
- Last Synced: 2025-01-20T19:52:28.632Z (over 1 year ago)
- Language: C++
- Size: 177 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Objectives
Basic implementations of MPI_Reduce and MPI_Allreduce. Changes:
# Running
After building with CMake run the program with the following command:
``` bash
$ mpirun -np 4 ./main
```
with
* 4 being the number of MPI-processes (np) - it has to be a power of 2.
# Algorithm

For an implementation for processor counts not equal power of 2 (asymetrical tree) see:
* [https://github.com/peterrum/in2012-ws3-allreduce-sequential](https://github.com/peterrum/in2012-ws3-allreduce-sequential)
* [https://github.com/peterrum/in2012-ws3-allreduce-asymetricaltree](https://github.com/peterrum/in2012-ws3-allreduce-asymetricaltree)