• Keine Ergebnisse gefunden

Cloud Computing

N/A
N/A
Protected

Academic year: 2021

Aktie "Cloud Computing"

Copied!
14
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Cloud Computing

Message Passing Interface

By

Nandhini Santhanam Sunilkumar Raghurman

(2)

Objective given at

the starting of the

course

To develop a parallel application with MPI.

Test the application on the cluster.

with sufficient large problem sizes.

with different numbers of cores.

Calculate the speedup .

(3)

MPI – Message

Passing Interface

Parallel computing has been in development for many years. MPI is one of the basic library which enables to do parallel programming across a cluster of computers.

It works based on the concept of message

communication between the different system in the cluster.

There are different libraries like MPICH , OpenMPI which offer the functionality of MPI.

(4)

MPI

MPI_Bcast

MPI_Gatherv

MPI_Scatterv

MPI_Bcast

(5)

Environment Setup

We have set up a virtual box with 1 master and 2 Slaves.

(6)

Matrix Multiplication - I

a₁₁ a₁₂

a₂₁ a₂₂ Matrix A

b₁₁ b₁₂

b₂₁ b₂₂ Matrix B

b₁₁ b₂₁

b₁₂ b₂₂

Transposed Matrix B

Rank 0 Rank 1 Rank 2

Matrix are created Matrix A and Row of Transposed Matrix B is sent

Column of output matrix is sent

(7)

Shortcomings in this Approach

The number of process should be equal to the number of columns in B matrix plus one

There are additional time required for

transposing the B matrix to be sent and the output matrix received from the processes.

(8)

Matrix Multiplication - II

a₁₁ a₁₂

a₂₁ a₂₂ Matrix A

b₁₁ b₁₂

b₂₁ b₂₂ Matrix B

Rank 0 Rank 1 Rank 2

Matrix are created Matrix B and Row of Matrix A is sent

Row of output Matrix sent

(9)

Case 1: Number of process is greater Than Number of Rows

• Number of Process : 4

• Number of Rows of Matrix A : 2

Rank 0 Rank 1 Rank 2

1st Row

2nd Row

Rank 3

Nothing will be sent

(10)

Case 2a: Number of process is less Than Number of Rows

• Number of Process : 4

• Number of Rows of Matrix A : 6

Rank 0 Rank 1 Rank 2

1st and 2nd Row

3rd and 4th Row

Rank 3

5th and 6th Row

(11)

Case 2b: Number of process is less Than Number of Rows

• Number of Process : 4

• Number of Rows of Matrix A : 5

Rank 0 Rank 1 Rank 2

1st and 2nd Row

3rd and 4th Row

Rank 3

5th Row

(12)

CONCLUSI

ON The short comings in

previous approach is overcome in this approach

1

The timing is compared for series multiplication and Parallel

multiplication.

2

The Problem size , number of processes and the number of CPU cores are dependent

3

(13)

References

• COMP 605: Introduction to Parallel Computing Topic: MPI:

Matrix-Matrix Multiplication By Mary Thomas

• Matrix Multiplication using MPI Dieter an Dieter an Mey Center for Computing and Communication Center for Computing.

• https://stackoverflow.com/questions/41575243/matrix- multiplication-using-mpi-scatter-and-mpi-gather

• https://www.daniweb.com/programming/software-

development/code/334470/matrix-multiplication-using-mpi-

parallel-programming-approach

(14)

Thank You!!!

Referenzen

ÄHNLICHE DOKUMENTE

Gernot Kubin is head of the Signal Processing & Speech Communication and the Technical Informatics Laboratories, coordinator of the Doctoral School Information

- Microservices und Service Discovery-Systeme - Container-Technologien anhand von Docker - Cluster Scheduling und Cluster Orchestration - Grundlagen von Kubernetes und Docker

SaaS provides the complete infrastructure, software, and solution stack as the service

It is the most complete cloud computing service model because the computing hardware and software, as well as the solution itself, are provided by a vendor as a complete

Für Pioniere von Public IaaS (Amazon) und Public SaaS (Salesforce) werden wichtige Kostenstrukturen umrissen; zweiseitige Märkte liefern den wirtschaftlichen Hintergrund

It does not only provide a software implementation for autonomous logistics but also provides a platform that integrates logistics service providers that actually execute the

For the first time, we ap- ply a concept vector based measure to a set of different con- cept representations like Wiktionary pseudo glosses, the first paragraph of Wikipedia

The TM system not only allows cloud providers to present their competencies and capabilities regarding multiple attributes by means of a self- assessment questionnaire (i.e., CAIQ)