Actions

HPX-5

From Modelado Foundation

Revision as of 22:04, June 22, 2015 by imported>Jayaajay (Initial draft of HPX-5 details)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Announcement

HPX-5 v1.0.0 released! Links

Introduction

HPX-5 v1.0.0 (High Performance ParalleX) is the latest version of the HPX-5 runtime system that provides a unified programming model for parallel and distributed applications, allowing programs to run unmodified on systems from a single SMP to large clusters and supercomputers with thousands of nodes. HPX-5 is a realization of ParalleX, an abstract cross-cutting exascale execution model, which establishes roles and responsibilities between system layers.

The HPX-5 interface and library implementation is guided by the ParalleX execution model and is freely available, open source, portable, and performance-oriented. HPX-5 is a general-purpose runtime system for applications, targeted at conventional, widely available architectures. It provides a unified programming model for parallel and distributed applications. HPX-5 includes support for Linux on x86_64 and ARM architectures along with experimental support for Mac OS X. As a dynamic adaptive runtime system, it is event-driven and embodies the principles of multi-threaded computing while also providing a global name and address space and advanced synchronization constructs. For communication between nodes, it uses the Photon network layer which has been tuned for optimal single sided communications as an alternative to the Message Passing Interface (MPI).

The ParalleX execution model itself is experimental and continues to evolve as driven by quantitative insights gathered from the Starvation-Latency-Overhead-Waiting for contention (SLOW) performance model. It aims to address the aggravating effects of asynchrony for extreme-scale machines and to improve the efficiency and scalability of scaling constrained applications. ParalleX utilizes lightweight concurrent threads managed using synchronization primitives such as dataflow and futures in order to alter the application flow structure from being message-passing to becoming message-driven. It also includes an advanced global address space model instead of relying on more conventional distributed memory structures.

Audience

HPX-5 is used for a broad range of scientific applications, helping scientists and developers write code that shows better performance on irregular applications and at scale when compared to more conventional programming models such as MPI. For the application developer, it provides dynamic adaptive resource management and task scheduling to reach otherwise unachievable efficiencies in time and energy and scalability. HPX-5 supports such applications with implementation of features like Active Global Address Space (AGAS), ParalleX Processes, Complexes (ParalleX Threads and Thread Management), Parcel Transport and Parcel Management, Local Control Objects (LCOs) and Localities. Fine-grained computation is expressed using actions. Computation is logically grouped into processes to provide quiescence and termination detection. LCOs are synchronization objects that manage local and distributed control flow and have a global address. The heart of HPX-5 is a lightweight thread scheduler that directly schedules lightweight actions by multiplexing them on a set of heavyweight scheduler threads.

Features in HPX-5

The HPX-5 C library implementation, libhpx, provides a high-performance, portable implementation of the API that runs on both SMP and distributed systems. It is designed around a cooperative lightweight thread scheduler and unified access to a global address space. Event driven programs invoke remote actions on global addresses using HPX-5’s parcel active-message plus continuation abstraction, or read or write global data directly through one-sided network operations. Globally addressable lightweight control objects (LCOs) provide control and data synchronization, allowing thread execution or parcel instantiation to wait for events without execution resource consumption. Finally, HPX-5’s implementation of ParalleX processes provides programmers the powerful abstraction of termination groups for parcel and thread execution. In addition to this core-programming model HPX-5 provides a number of higher level abstractions including asynchronous remote-procedure-call options, data parallel loop constructs, global memory allocation, and system abstractions like timers.

Global Address Space: The global address space is modeled as a linear byte addressable virtual space, where the binding between global addresses and local virtual addresses may change at runtime. Global addresses serve as the targets of active message parcels, as well as supporting put/get operations directly. HPX-5 ships with two implementations of the global address space. A traditional, high-performance partitioned global address space (PGAS) allows low-latency, one-sided put/get operations in addition to parcel access but does not support remapping, while an experimental active global address space emulates put/get with parcels while allowing the binding of global to physical addresses to vary dynamically.

Memory management within the global address space leverages features of the high-performance jemalloc allocator, to provide scalable local allocation of globally addressable data, as well as cyclic distributed arrays. Lightweight Thread Scheduling: The HPX-5 lightweight-threading system enables massively threaded computation by minimizing the cost of thread creation and context switching. HPX-5 threads have unrestricted behavior and can wait for asynchronous events using lightweight control objects. Local load balancing is performed via workstealing, while distributed load balancing is managed by remapping in the active global address space. Threading overheads rival existing modern packages with compatible semantics.

Parcels: HPX-5 parcels encode event-driven execution by extending a traditional active message abstraction with a continuation, enabling complex chains of computation in addition to traditional remote procedure calls. Parcels are sent to addresses within the global address space and embody two-sided network programming. Parcel instantiation is isomorphic with lightweight thread creation, in fact the parcel structure and thread descriptor are the same structure.

Local Control Objects (LCOs): LCOs represent control state in memory. Both threads and parcels interact with LCOs, threads may block until an LCO is ready and/or its data is available, while parcel send operations may wait until an LCO is ready. HPX-5 is distributed with a number of built-in LCO types, including futures, and gates, generation counters, parameterizable commutative-associative reductions, semaphores, etc., and supports user-defined LCOs as well. Processes: HPX-5 groups parcels and threads into processes, which may optionally have termination detection enabled. Termination detection triggers an event when the processed has reached quiescence. This powerful mechanism can be useful in algorithms that do not contain a natural "join" point.

Networking: In addition to active message parcel operations, HPX-5 provides direct access to the global address space through asynchronous put/get operations. Generic support for both parcel transport and put/get operations is designed around a novel networking abstraction, put-with-remote-notification. HPX-5 provides two implementations of this abstraction. The PWC network uses Photon’s put-with-remote-completion support directly and implements a parcel emulation layer for parcel transport. The ISIR network provides parcel transport on top of the traditional MPI Isend/Irecv point-to-point messaging, and emulates put-with-remote-notification with parcels.

Convenience Features: Development of HPX-5 was guided by codesign with computational scientists. This resulted in a number of convenience features that encapsulate lower level behavior in more convenient and familiar form. These include a suite of remote-procedure style calls, data parallel loops for local and distributed data, and numerous smaller features.

Timeline

The HPX-5 source code is distributed with a liberal open-source license.

  • v1.0.0 released on 3rd May 2015.
  • v2.0.0 is scheduled to be released at SC 2015.

HPX-5 is developed through an agile process that includes continuous integration, regular point releases, and frequent regression tests for correctness and performance. Users can submit issue reports to the development team through the HPX-5 web site. Future major releases of HPX-5 will be delivered semi-annually although correctness and performance bug fixes will be made available between major releases. Users may download official releases as well as the latest development branch of the code.

Quick Start Instructions

Git Clone

Clone the main HPX-5 Git repo at Gitlab. The main development work occurs on the “develop” branch in this repo. You'll easily be able to keep up with the latest source code using normal Git commands: First, you will need a Git client. We recommend getting the latest version available. If you do not have the command “git” in your path, you will likely need to download and install Git.

shell$ git clone https://gitlab.crest.iu.edu/extreme/hpx.git

Follow the installation directions located under hpx/INSTALL

Links