Giter Site home page Giter Site logo

elflyao / mpi-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wolfram18/mpi-demo

0.0 0.0 0.0 151 KB

๐Ÿ—‚ Several parallel programs using MPI. Such as: approximate calculation of Pi, complex matrix multiplication, multiplication of long numbers by the Karatsuba or Schonhage-Strassen multiplication methods.

C++ 100.00%

mpi-demo's Introduction

Several demo programs with MPI

MPI is a directory of C++ programs which illustrate the use of the Message Passing Interface for parallel programming. MPI allows a user to write a program in a familiar language, such as C, C++, FORTRAN, or Python, and carry out a computation in parallel on an arbitrary number of cooperating computers.

Function "Ring":

  • 0 --> 1, 1 --> 2, 2 --> 3 and etc. --> 1;
  • it repeats optional amount of times;
  • using the Point-To-Point or the Collective communication pattern;
  • prints final values on threads and then sum them up (with the Collective pattern);
  • the number of repetitions can be specified after the program name at startup;
  • by default the Ring function is repeated once (1).

Multiplication:

  • complex matrix multiplication;
  • multiplication of long numbers by the Karatsuba method;
  • multiplication of long numbers by the Schonhage-Strassen method.

Approximate calculation of Pi using:

  • the quadrature formula of middle rectangles;
  • the trapezoidal quadrature formula;
  • Simpson's quadrature formula.

1.jpg

2.jpg

mpi-demo's People

Contributors

wolfram18 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.