• Aucun résultat trouvé

Session 5

N/A
N/A
Protected

Academic year: 2022

Partager "Session 5"

Copied!
1
0
0

Texte intégral

(1)

Lab Session 5, Concurrency

Jean-Viven Millo

Universit de Nice Sophia-Antipolis jean-vivien.millo@inria.fr

Andrea Tettamanzi

Universit de Nice Sophia-Antipolis andrea.tettamanzi@unice.fr March 31, 2014

Abstract

The goal of this session is to discover the basic mechanisms of MPI. In order to realize the exercises, you will require the following documents: i) this lab session subject ii) the MPI4Lecture library available at the following location: http://www- sop.inria.fr/members/Luc.Hogie/mpi4lectures/iii) the course iv) the JAVADOC.

Exercise 1: Discover MPI4Lectures

Create a new JAVA project and link it to the MPI4Lecture library. Get used to the syntax through the available example.

The ring. http://www-sop.inria.fr/members/Luc.Hogie/mpi4lectures/src.html/mpi/example/Ring.java.html

Exercise 2: The bubble sorter is back

Re-implement the multithreading layer of the bubble sorter(TP1 exercise 4) in a MPI fashion.

Exercise 3: Matrix multiplication

Write an MPI program that takes an input two compatible matrices (MxN) and (NxP) and the number of available nodes for computation. The program computes the matrix multiplication while efficiently using all the available nodes.

1/ Determine the rule to be followed to distribute efficiently the computations over the nodes.

2/Write the code.

Exercise 4: Broadcasting

MPI4lectures is a basic implementation of MPI. For example, the broadcasting primitive is not implemented. Let’s extends the MPI interface and the MPIImplementation class to provide the broadcasting feature.

1/ What are the possible broadcasting scheme? What is the impact on the API?

2/ Try it on an example.

1

Références

Documents relatifs

The goal of this session is to design and implement an common application but in a concurrent fashion. In order to realize the exercises, you will require the following documents:

The goal of this session is to discover the basic mechanisms of MPI. In order to realize the exercises, you will require the following documents: i) this lab session subject ii)

Now ifs time to make sure that the province's postsecondary education system is able to meet the needs of the next Alberta.. A strong postsecondary education system is

Construction of homes for senior citizens, which was the initial phase of my Government's Five Year Development Program, will be proceeded with in the two major cities during

It gives me pleasure, to report that an over-all increase of 14 per cent was experienced on all British Columbia Ferries routings is 1971.. An astounding increase of 80 per cent

Speaker and Members, I now leave you with the prayer that Divine guidance will attend your deliberations in the service of our people. Province

My Government intends to devote itself, in 1985 and the years to come, to a continuance of its effort to build a province where young Manitoban men and women can have hope for

In that case, the iSCSI boot client queries the SLP Discovery Service using query string 1 of the iSCSI Target Concrete Service Type Template, as specified in Section 6.2