1 / 9

Composable Parallel Programming

D. C. B. A. Composable Parallel Programming. Any parallel program can be used, without change, as a component of a larger parallel program: A can be used to build B; B and C to build D. Composable Parallel Programming. Q:. Why is it not possible today?. A:.

goldsteinm
Download Presentation

Composable Parallel Programming

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. D C B A Composable Parallel Programming Any parallel program can be used, without change, as a component of a larger parallel program: A can be used to build B; B and C to build D.

  2. Composable Parallel Programming Q: Why is it not possible today? A: Parallel Programs make Resource Decisions! Which Processors? How is Data Distributed? Q: Why can’t a Compiler do it? A: Must Look at the Entire Program! Can’t Respond to Run-Time Changes!

  3. What can we learn from Sequential Computing? Q: A: Two Powerful Concepts: Procedures Objects Goal: Generalize for Multi-Core Computing!

  4. A B Nested Sequential Procedure Activations call A waits while B executes local variables stack Address Space of Program

  5. A C B D Nested Parallel Procedure Activations A continues while others execute concurrently! How to Allocate Locals? A Stack no longer works! Q: Use a Tree Structure; Allocate in Heap The Cactus Stack: A: A D C B

  6. P P P General Object Implementation Sequential Computing Multi-Core Computing stack O2 O1 address space heap To avoid complex address translation all objects must reside in a common global address space. O1 O2 Distributed memory

  7. Composable Parallel Programming What it requires: Efficient Heap Management Fine-Grain Scheduling of Threads Can efficient Heap Management be Implemented in a Multi-Core Computer? Q: A: Yes! With the right hardware: - Global Addressing - Built-in Garbage Collection

  8. Composability Current multiprocessor computers do not support composition of parallel programs: Using a parallel program as a component of a larger parallel program generally requires understanding and modifying the internal mechanisms of the component. This is true because programmers are given the responsibility for planning the management of processors and distribution of data.

  9. Requirements for Composability • Means for flexible and fast run-time management of processor and memory allocation. • Hardware-supported memory allocation and garbage collection. • Fine-grain scheduling of threads. • Architectural support for a memory model that satisfies principles of modularity: • Context Independence • Data Generality • Hierarchy

More Related