Giter Club home page Giter Club logo

distributed-matrix's Introduction

distributed-matrix

A point-wise matrix distances calculator, implemented in C/MP+MPI using distributed memory and parallel processing paradigms.

Index:

  1. Authors
  2. Installation
  3. Usage
  4. Details

Authors

  • Danielle Modesti, nUSP 12543544
  • Hélio Nogueira Cardoso, nUSP 10310227
  • Pedro Falcão Rocha, nUSP 12692408
  • Luis Eduardo de Brito Câmara, nUSP 12690282
  • Rafael Zimmer, nUSP 12542612

Installation

Implementation used: OpenMPI

$ sudo apt-get install openmpi-bin openmpi-doc libopenmpi-dev
$ sudo yum install openmpi openmpi-devel
$ export PATH=$PATH:/usr/lib/openmpi/bin
$ sudo dnf install openmpi openmpi-devel
$ source /etc/profile.d/modules.sh
$ module load mpi/openmpi-x86_64
$ brew install open-mpi

Download the wizard and install from the official Microsoft-MPI page, and add to the PATH environment variable if needed.

Usage

To test if the installation was successful, run:

$ make test # If successful, the output should be similar to:
MPI version: 3.1
OpenMP version (from macro _OPENMP): 201511

To compile and link all source code, and header files use:

$ make all

To run the main source file, use (where are arguments accepted by mpirun):

$ make run <N> <S> <T> [P=10]

Example:

$ make run N=100 S=42 T=4 
Distância Manhattan mínima: 0 (soma min: 57015) e máxima: 287 (soma max: 2130946)
Distância Euclidiana mínima: 0.00 (soma min: 39607.81) e máxima: 165.71 (soma max: 1250695.85)

Details

The Makefile also has a timing utility, which can be used to measure the execution time of the program. To use it, run:

$ make time <N> <S> <T> [P=10]

Example:

$ make time P=2 N=150 S=42 T=10
Calculating average time over 5 runs...
Average time: 5.778 seconds

distributed-matrix's People

Contributors

rinderomna avatar rzimmerdev avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.