• Keine Ergebnisse gefunden

Find out which parts of the sorting process can be parallelized

N/A
N/A
Protected

Academic year: 2021

Aktie "Find out which parts of the sorting process can be parallelized"

Copied!
2
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Prof. Dr. Christian Baun

Cloud Computing (SS2018) Faculty of Computer Science and Engineering Frankfurt University of Applied Sciences

Your Special Challenge

Develop a parallel sorting application with C and MPI

Sorting is a fundamental problem in computer science. Unfortunately, for most serial sorting algorithms, it is challenging to implement versions that benefit from the potential speedup of parallel computers with distributed memory.

Parallel Mergesort [1][2][3][4] is one example of a sorting algorithm that is useful for parallel systems.

The individual steps of your task

1. Investigate how to implement with the programming language C and with MPI an application, that does the Mergesort in parallel. Find out which parts of the sorting process can be parallelized. Literature provides many helpful sources, covering sorting algorithms and how to implement it in C with MPI [5][6][7].

2. Deploya MPI environment for testing and development on physical hardware, inside virtual machines [8][9] or inside a public cloud infrastructure service like EC2 [10][11][12].

3. Develop your application with C and MPI.

4. Test your application on your own MPI cluster and test it on our 128 node cluster with the 512 CPU cores. Test your application. . .

• with sufficient large problem sizes (this means you prior need to generate some data sets of several MB in size) and

• with different numbers of cores (1, 2, 4, 8, 16. . . 512) and

calculate the speedup. Your outcomes may prove some of the laws and limi- tations we already discussed during class in slide set 1.

5. Create a presentation (max. 30 Minutes) with maximum 15 slides and addi- tionally a live demonstration. Give your presentation during class or during an exercise session.

Content: MPI Special Challenge – Sorting Page 1 of 2

(2)

Prof. Dr. Christian Baun

Cloud Computing (SS2018) Faculty of Computer Science and Engineering Frankfurt University of Applied Sciences

Some final words to motivate you

In real life, one or two weeks is a typical amount of time to do such a task in parallel to your daily tasks. In this course you have several weeks and you are not alone.

Last but not least, questions of the exam will cover this special task!

References

[1] “Parallel Mergesort.” http://www.mcs.anl.gov/~itf/dbpp/text/node127.

html.

[2] “One implementation of the mergesort in parallel using MPI.” https://

github.com/racorretjer/Parallel-Merge-Sort-with-MPI.

[3] C. Siebert and J. L. Träaff, Efficient MPI Implementation of a Par- allel, Stable Merge Algorithm. Springer, 2012. https://apps.

fz-juelich.de/jsc-pubsystem/aigaion/attachments/siebert_merging.

pdf-02e21dab116de083c8e60d6da16ebe4c.pdf.

[4] “A Specimen of Parallel Programming: Parallel Merge Sort Implementation.”

http://penguin.ewu.edu/~trolfe/ParallelMerge/ParallelMerge.html. [5] T. Bräunl, Parallele Programmierung: Eine Einführung. Vieweg, 1993.

[6] D. Knuth,The Art of Computer Programming – Volume 3 – Sorting and Search- ing. Addison-Wesley, 2nd edition ed., 1998.

[7] “Parallel Algorithms – sorting.”http://www.dcc.fc.up.pt/~fds/aulas/PPD/

1112/sorting.pdf.

[8] “MPI Tutorials 01.” https://www.youtube.com/watch?v=2rpWEZY0aPo. [9] “Create test MPI cluster using VirtualBox images.” http://www.zamaudio.

com/?p=837.

[10] “Launching an Amazon EC2 MPI Cluster.” http://mpitutorial.com/

tutorials/launching-an-amazon-ec2-mpi-cluster/.

[11] “Using MPICH in Amazon EC2.” https://wiki.mpich.org/mpich/index.

php/Using_MPICH_in_Amazon_EC2.

[12] “MPI on EC2.” https://www.youtube.com/watch?v=049CVTGHO1k.

Content: MPI Special Challenge – Sorting Page 2 of 2

Referenzen

ÄHNLICHE DOKUMENTE

Cloud Computing (WS1819) Faculty of Computer Science and Engineering Fachhochschule Frankfurt am Main.. Exercise

Cloud Computing (SS2018) Faculty of Computer Science and Engineering Frankfurt University of Applied Sciences.. Your

Cloud Computing (WS1718) Faculty of Computer Science and Engineering Frankfurt University of Applied Sciences.. Your

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

The scaling mechanisms of Mesosphere, regarding scaling up the number of instances of applications and scaling up the available resources of an application, within the meaning

We analyze how regular key management tasks like key renewal and key revocation in classic public-key infrastructure (PKI) using certificate revocation lists (CRLs) and

According to the requirement that every program must also be valid in Python proper, we can not add any additional syntax rules, such as type declarations and the checker must

The paper concludes with a push towards finding a global performance index through kinematic sensitivity, but is not able to find a robust method due to the