Skip to content

Implementation of the Reverse Cuthill McKee algorith in C and optimizing it using OpenMP

Notifications You must be signed in to change notification settings

z3y50n/ReverseCuthillMcKee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reverse Cuthill McKee Algorithm

Implementation of the algorithm in C and optimizing it using OpenMP

An assignment for course "Parallel & Distributed Systems" of AUTH


Author: Dimitrios Papageorgiou

AEM: 8884


Usage

In the main folder type:

make

Then enter:

./bin/rcm_sequential arg1 arg2

or

./bin/rcm_openmp arg1 arg2

for sequential and parallel version respectively

  • arg1: N, The size of the Matrix (N x N)
  • arg2: Density, percentage of non-zero elements

*Note: In the Makefile change the CC variable to match you version of gcc compiler


Running the code in the above way will compute the RCM and print the time it took for completion

There are helper functions for visualizing the results.

  • output(): will return the corresponding sparce matrix of a given graph
  • printMatrix(): Is used to print a sparce matrix
  • saveCSV(): Will store the results in a CSV file

You can use the above functions either in main_sequential.c or in main_omp.c depending on which version you wish to run.

About

Implementation of the Reverse Cuthill McKee algorith in C and optimizing it using OpenMP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published