Coder Social home page Coder Social logo

para-lu's Introduction

LU Decomposition

Implementation of parallel algorithms for Gaussian elimination to factor a dense N x N matrix into an upper-triangular and a lower-triangular matrix, sequentially, with incremental improvements by parallelisation using pthread and openmplibraries.

Running instructions

The detailed code functionalities and descriptions have been reported in the report.pdf. Further, we have commented and explained the modules and helper functions to our best attempts for easy readability.

We submit a Makefile, which compiles all the relevant files using the command make. The execution instructions are mentioned below.

File Structure

Sequential Files

Housed in sequential/.

seq_LU.cpp - is where a clean, commented, sequential version of the LU Decomposer is kept to serve as a reference and a baseline for comparison. Also prints exec_time and L2,1 norm of the residual array to aid in performance analysis.

To run the executable, simply execute ./seq.out <matrixDimension> 1. Here, the "1" is a vestigial remnant of the numthreads to be developed in the parallel codes.

OpenMP

Housed in openmp/.

openmp_LU.cpp - is where the OpenMP aided parallel LU is developed.

And run using ./omp.out <matrixDimension> <numThreads>

omp_LU_transpose.cpp - is an alternative version where we experimented with the Column Major Order Matrices instead.

pthreads

Housed in pthreads/.

pthread_LU.cpp and pthreads_LU_alt.cpp are the two variations of pthread implementations. The details can be found in the report.

And run using ./pth.out <matrixDimension> <numThreads>

Helpers

/plots directory houses the code for generating the plots for the times, efficiencies and speedups obtained. It is also were these generated plots are saved.

Team

Goonjan Saha
Gurarmaan S. Panjeta
Viraj Agashe

para-lu's People

Contributors

panjete avatar darthva28 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.