/*
 * MPI.h
 *
 *  Created on: Apr 19, 2018
 *      Author: bhu
 */

#ifndef MPI_H_
#define MPI_H_

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <sys/neutrino.h>
#include <string.h>

void writeData(int* buffer, unsigned int number_of_words);
// create the channel ID
int setupMPI();

void sendDataSender(pid_t parent_pid, int chid, int *send_msg, unsigned int number_of_words);
void receiveDataReceiever(int chid, int *receive_buffer, unsigned int number_of_words);

#endif /* MPI_H_ */

