Skip to content

Paralell implmentation for the Matrix fast exponentiation algorithm using MPI

License

Notifications You must be signed in to change notification settings

neeldani/Parallel-Matrix-Fast-Exponentiation-Algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parallel-Matrix-Fast-Exponentiation-Algorithm

Parallel implmentation of the Matrix fast exponentiation algorithm using MPI which is used to calculate large powers of a matrix. The details of the algorithm are listed in the report.pdf

Dependencies

  • gcc-5.4.0
  • openmpi-1.10.2

Usage

Clone the repository using:

foo@bar:~$ git clone [email protected]:neeldani/Parallel-Matrix-Fast-Exponentiation-Algorithm.git

Navigate to the project directory:

foo@bar:~$ cd Parallel-Matrix-Fast-Exponentiation-Algorithm

Execute the run.sh file which will compile and run the master.c and slave.c programs

foo@bar:~$ chmod a+x run.sh
foo@bar:~$ ./run.sh

Future Works

Currently, the code is functional only for matrices having number of rows divisible by number of slaves (both can be configured in the config.h file). Future work include generalization of the algorithm by removing the above mentioned constraint by using Scatterv and Gatherv functions instead of Scatter and Gather respectively.

References

The project is based on the idea covered in the paper A parallel algorithm for matrix fast exponentiation based on MPI published in the 2018 IEEE 3rd International Conference on Big Data Analysis (ICBDA).

About

Paralell implmentation for the Matrix fast exponentiation algorithm using MPI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published