You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository contains Sequential and Parallel implementations of LU decomposition using row-pivoting that use Gaussian elimination to factor a dense N x N matrix into an upper-triangular one and a lower-triangular one, in C++.
Includes analysis of comparisions of sequential, pthread and openmp implementations.
Instructions to run the code
To clean log files and executables: make clean
To change problem size and number of threads:
Change the value of N and PTHREAD_COUNT from constants.h accordingly
To compile the different modes of LU decomposition:
Sequential Implementation: make seq
Parallel Implementation using pthreads: make pth
Parallel Implementation using openmp: make omp
All implementations compile: make all
Run the different codes:
./sequential
./pth_impl
./omp_impl
You can view the time taken by different implementations in log.txt
About
Sequential and Parallel implementations of LU decomposition that use Gaussian elimination to factor a dense N x N matrix into an upper-triangular one and a lower-triangular one in C++.