Skip to content

Instantly share code, notes, and snippets.

0x973F795C5aaaf07f8c8d92d57e945f0239DEDF67
@SergeSysoev
SergeSysoev / gist:7479a6a7b9c37c34f15af33f9d04d9c3
Created June 13, 2016 12:10 — forked from sld/gist:3946994
Odd Even Sort with C++ and MPI - Алгоритм чет-нечетной сортировки на C++ и MPI
/* http://www.software.unn.ac.ru/ccam/files/HTML_Version/part4.html */
/* http://en.wikipedia.org/wiki/Odd%E2%80%93even_sort */
/* http://bit.ly/NWfuT6 */
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <mpi.h>
const int ROOT_NODE = 0;