https://github.com/meqdaddev/mpi_matrix_vector_multiplication_parallel_and_sequential
A parallel program and sequential for Matrix-Vector multiplication
https://github.com/meqdaddev/mpi_matrix_vector_multiplication_parallel_and_sequential
matrix-vector-multiplication mpi mpi-library parallel parallel-computing
Last synced: 12 months ago
JSON representation
A parallel program and sequential for Matrix-Vector multiplication
- Host: GitHub
- URL: https://github.com/meqdaddev/mpi_matrix_vector_multiplication_parallel_and_sequential
- Owner: MeqdadDev
- License: mit
- Created: 2017-12-22T13:40:11.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-09-03T07:56:02.000Z (over 4 years ago)
- Last Synced: 2025-01-10T09:59:22.709Z (over 1 year ago)
- Topics: matrix-vector-multiplication, mpi, mpi-library, parallel, parallel-computing
- Language: C
- Size: 9.77 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Parallel program and sequential for Matrix-Vector multiplication
This program executed on Linux CentOS.
#
* ## Sequential:
This program used here to compare the results (i.e. execution time) with the parallel program.
- To compile this program on the terminal, type this command:
```sh
gcc -o sequential Sequential.c
```
Object file with name sequential will be generated, to execute this file, type this:
```sh
./sequential
```
#
* ## Parallel:
This program use multiprocessing technique via MPI library, i.e. the execution will be on multiprocessors.
- To compile this program, type this:
```sh
mpicc -o parallel MPI_Parallel.c
```
- To execute the object file, type this:
```sh
mpirun -np 4 parallel
```
#### _Note:_ Number 4 in the last command represents the number of processors that will be used in the execution of the program.
------------------------------------------------
Done by:
### Eng. Meqdad Darweesh