Skip to content

MeqdadDev/MPI_Matrix_Vector_Multiplication_Parallel_and_Sequential

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:
    gcc -o sequential Sequential.c
    Object file with name sequential will be generated, to execute this file, type this:
    ./sequential

  • Parallel:

This program use multiprocessing technique via MPI library, i.e. the execution will be on multiprocessors.

  • To compile this program, type this:
    mpicc -o parallel MPI_Parallel.c
  • To execute the object file, type this:
    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

About

A parallel program and sequential for Matrix-Vector multiplication

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages