• Keine Ergebnisse gefunden

MPI Special Challenge 3

N/A
N/A
Protected

Academic year: 2021

Aktie "MPI Special Challenge 3"

Copied!
18
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

MPI Special Challenge 3

Matrices multiplication using MPI

(2)

Rodion Slepnev

Theory and realization of

algorithm

2

Project Team

Minh Nguyen Test cases Karen

Gharslyan

Introduction and Coordination

(3)

Same program for Master and Worker

(4)

Row on column

4

Matrix Multiplication (1-3)

(5)

Matrix Multiplication (2-3)

Rows on column

(6)

Rows on matrix

6

Matrix Multiplication (3-3)

(7)

How tasks are assigned to Workers

Ideas to Parallel Matrix Multiplication:

1 single task: Multiplication of 1 row in matrix A to 1 column in matrix B

A x B with A (a x c) and B (c x b) will have in total a*b tasks

Simple approach:

Divide tasks based on number of rows in matrix A

Rows are divided equally to each workers in cluster

(8)

8

How tasks are assigned to Workers

Implementation

(9)

Send and Receive MPI functions

(10)

10

Test Case

Matrix A x Matrix B

Size matrix A: NRA x 10 Size matrix B: 10 x 10

Test case varies 3 variables:

NRA: 10,100,1000,10000,20000,50000,70000,100000

Number of Nodes: 2,5,7,10,20,30,50,70,100

MPI Variant: mpich, openmpi

Execution time and memory consumption of each test case is captured

(11)

Execution time (log scaled)

(12)

12

Execution time (log scaled)

(13)

Execution time: Small problem size

(14)

14

Execution time: Medium problem size

(15)

Memory consumption

(16)

16

Memory consumption

(17)

Takeaway

Same code, different MPI library produces different result

OpenMPI is faster than mpich in general

mpich is unexpectedly slow for nodes range: 5~10

-> Results not useful

Optimal number of nodes for case 20000 x 10, 10 x 10

-> 20 nodes (OpenMPI)

(18)

18

Thank you for listening !

Referenzen

ÄHNLICHE DOKUMENTE

Allgemein behält sich die Schelhammer Capital Bank AG das Recht vor, großvolumige Kundenaufträge in Aktien oder aktienähnlichen Wertpapieren über einen Ihrer Intermediäre

Write down (without proof) the generators of spatial rotations in Minkowski space. (d) Show that the generators of Lorentz boosts and spatial rotations are

To be more precise, if the independent decisions of the first stage, i.e., the supply of the branches with lot-types in a certain multiplicity – in other words: the x b,l,m – are

Recent advances in the area of abstract interpretation have led to the development of static program analysis tools that efficiently determine upper bounds for the Worst-Case

Yet, this decrease in the average WCRT reduction is not proportional with the additional number of tasks actually profiting of shaping the bus access behavior of the task allocated

Math Time problem proposal #1 Darij Grinberg.. (version 5

To this end, it will be important to separate clearly the two aspects of the relativistic challenge referring to these two claims: one should distinguish (1) the question,

inhaltlich ganz vorne mit dabei: Hier sind die Leitprojekte „Smart City Project Graz Mitte“ (Start 2012) mit dem Science Tower und seiner innovativen Grätzelzellen-Technologie