• Keine Ergebnisse gefunden

AC AS = π 4 The dots can be generated in parallel by the workers

N/A
N/A
Protected

Academic year: 2021

Aktie "AC AS = π 4 The dots can be generated in parallel by the workers"

Copied!
1
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Prof. Dr. Christian Baun

Cloud Computing (WS1314) Faculty of Computer Science and Engineering Fachhochschule Frankfurt am Main

Exercise Sheet 10

Exercise 1 (Approximate π via Monte Carlo)

π can be approximated via Monte Carlo simulation.

Approach: Inscribe a circle of radiusr inside a square with side length 2r. AS = (2r)2 = 4r2

AC =πr2 = π= AC r2

Generate random dots in the square. The number of dots in AC in relation to the number of dots inAS is equal to the surface ratio.

AC

AS = πr2

4r2 = AC AS = π

4

The dots can be generated in parallel by the workers. The master receives the dots and calculates π.

A =Surface ratio r =Radius C =Circle

S =Square

Image source: Wikipedia

1. Develop a MPI application, which calculates π via Monte Carlo simulation.

2. Start a MPI cluster (e.g. in a public Cloud infrastructure service like Amazon EC2) and execute your MPI application in the MPI cluster.

3. Test your MPI application with dierent numbers or worker nodes to discover if your application scales well with a growing number of worker nodes.

4. Present your application and the outcome of your performance measurements during the exercise session.

Content: Topics of slide set 8 1 Discussion: December 19th 2013

Referenzen

ÄHNLICHE DOKUMENTE

Tavaliselt on vaja programmi kompileerimisel anda kompilaatorile lisaparameeter -C mille tulemusena kompilaator genereerib ca 10 korda aeglasema programmi, kuid k¨

Because only the diameter of the pulley determines accuracy Automatic Diskette Position and Ejection With this unique feature, the operator just pushes in the

Evaluation of the relative magnetization is equal to analyzing ferrofluids with a constant total amount of magnetic substance (shrinking the ferrofluid volume while increasing

Detect B-mode polarisation in multiple frequencies, to make sure that it is the B-mode of the CMB. Check for scale invariance: Consistent with a scale

Our approach for learning loop iteration counts and execution times of processes automat- ically generates classifiers, which relate the static code features to the dynamic

Subsequent to the partitioned suffix array algorithm each set of multiple substrings is rep- resented by a cluster number and a set of global sequence positions in the

As with many institutes, visitors are permitted use of the university mathe- matics library, which in the case of the University of Bonn is excellent (though budget

Es kann bereits vorweg genommen werden, dass diese Anforderung durch die blo- ße Umsetzung von nach REST-Maßst¨ aben korrektem RESTful HTTP nicht in G¨ anze erf¨ ullt wird..