protoxvga / distributed_mean_deviation

Little program to compute the mean and the standard deviation of an array of size n filled with random integers between 0 and 50 with Open MPI

Repository from Github https://github.comprotoxvga/distributed_mean_deviationRepository from Github https://github.comprotoxvga/distributed_mean_deviation

Distributed mean and deviation computation

Little program to compute the mean and the standard deviation of an array of size n filled with random integers between 0 and 50 with Open MPI Program developed for an assignment during my fourth year in the Griffith College (Dublin)

Installation

This program needs Open MPI to work. Open MPI is a library for distributed system in C++.

Try to follow this steps to install open MPI on your system :

Usage

Feel free to upgrade it to give data through .txt or .dat file.

Compilation

mpic++ name_searcher.cpp -o <executable-name>

Execution

Default random array size

mpiexec -n <number-of-nodes> <executable-name>

example: mpiexec -n 4 ./a.out

Defined random array size

mpiexec -n <number-of-nodes> <executable-name> <random-array-size>

example: mpiexec -n 4 ./a.out 100000

About

Little program to compute the mean and the standard deviation of an array of size n filled with random integers between 0 and 50 with Open MPI

License:MIT License


Languages

Language:C++ 100.0%