GithubHelp home page GithubHelp logo

glaand / conjugate_gradient_with_mpi_and_openmp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tgolubev/conjugate_gradient_with_mpi_and_openmp

0.0 0.0 0.0 7.83 MB

Implementing a parallelized conjugate gradient algorithm using a hybrid of distributed (MPI) and shared (OpenMP) memory approach.

C++ 55.31% C 0.28% MATLAB 23.47% TeX 20.05% Makefile 0.89%

conjugate_gradient_with_mpi_and_openmp's Introduction

Parallel Conjugate Gradient algorithm with MPI plus OpenMP

An parallel implementation of the conjugate gradient algorithm using a hybrid of distributed (MPI) and shared (OpenMP) memory approach for both sparse and dense matrices. For sparse matrices, compressed row storage (CRS) is used.

MPI and OpenMP features used:

  • MPI_Allreduce for dot products
  • MPI_Allgatherv for matrix-vector product
  • MPI_Gatherv to get solution vector
  • omp parallel for and/or omp simd in matrix-vector product
  • omp parallel for reduction for sub-vector dot products

Files in Hierarchical Data Format (HDF5) are used for parallel I/O and each node reads only the portion of the matrix which it needs.

Features attempted but which did not result in any performance improvements:

  • omp tasks or sections to simultaneously calculate lines 15 and 16 in CG algorithm.
  • Same CPU times
  • omp simd vectorization instead of the OpenMP parallel for
    • Slower CPU times, same as when no simd nor parallel for
  • omp parallel for simd: vectorization combined with multithreading
    • Same CPU times

conjugate_gradient_with_mpi_and_openmp's People

Contributors

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