Skip to content
Implementation of MPI to perform matrix multiplication
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
Analysis.docx
Analytics.xlsx
LICENSE
Makefile
README.md
a.txt
b.txt
c.txt
generator.py
matrix
matrix-seq
matrix-seq.c
matrix.c
mpi-blocking.c
mpi-sendrec
mpi-sendrec.c

README.md

MPI-Matrix-Multiply

I made this for COS436 Parallel & Distributed Computing during undergrad. It performs matrix multiplication using mpi. You input two text files in the same folder (a.txt & b.txt). They have numbers separated by spaces. Change the hardcoded size values in the matrix.c file at the top of the main. It runs through and performs matrix multipliation on the two matrices. Then, it outputs a new text file (c.txt), and prints out the results. generate.py creates a matrix of random numbers for a given size.

I implemented MPI using MPICH.

You can’t perform that action at this time.