Skip to content

Assignment 1 in High Performance Computing (Parallel Processing), Get max element in array and Matrix multiplication

Notifications You must be signed in to change notification settings

nadaahmed2001/Parallel_Processing_Assignment1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

Assignment 1 in High Performance Computing (Parallel Processing)

  • Using MPI_SEND & MPI_RECV ONLY.
  • Running the C code on Ubuntu terminal on virtual box
  • Must install MPI first

Problem 1:

Develop a parallel program that outputs max number in a given array.

-> Note:
Size of array may not be divisible by number of processes. So, this case must be handeled

ScreenShots of my source code output:

Example where array size is divisible by number of processes Problem1Capture1

Example where array size is not divisible by number of processes Problem1Capture2

Problem 2 (Matrix Multiplication)

  • Write a matrix multiplication program, Matrices’ dimensions and values are taken as an input.
  • Take input from console and from file.
  • Must use dynamic allocation.

ScreenShots of my source code output:

Reading from console Problem2Capture2 Reading from file Problem2WithFiles

About

Assignment 1 in High Performance Computing (Parallel Processing), Get max element in array and Matrix multiplication

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages