Parallel C++

Efficient and Scalable High-Performance Parallel Programming Using HPX

  • Textbook
  • © 2024

Overview

  • Focuses on practical parallel C++ programming at the graduate level for non-computer science students
  • Explains how to exploit the parallel features in the C++ 17 and C++ 20 standards, including the HPX library
  • Includes lots of examples like Mandelbrot sets, Julia sets, and the simulation of the evolution of star systems

This is a preview of subscription content, log in via an institution to check access.

Access this book

eBook USD 54.99
Price excludes VAT (Brazil)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 69.99
Price excludes VAT (Brazil)
This title has not yet been released. You may pre-order it now and we will ship your order when it is published on 3 Aug 2024.
  • Compact, lightweight edition
  • Free ship** worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

Licence this eBook for your library

Institutional subscriptions

About this book

This textbook focuses on practical parallel C++ programming at the graduate student level. In particular, it shows the APIs and related language features in the C++ 17 and C++ 20 standards, covering both single node and distributed systems. It shows that with the parallel features in the C++ 17 and C++ 20 standards, learning meta-languages like OpenMP is no longer necessary. Using the C++ standard library for parallelism and concurrency (HPX), the same language features can be extended to distributed codes, providing a higher-level C++ interface to distributed programming than the Message Passing Interface (MPI).

The book starts with the single-threaded implementation of the fractal sets, e.g. Julia set, and Mandelbrot set, using the C++ Standard Library (SL)’s container and algorithms. This code base is used for parallel implementation using low-level threads, asynchronous programming, parallel algorithms, and coroutines. The asynchronous programming examples are then extended to distributed programming using the C++ standard library for parallelism and concurrency (HPX). Octo-Tiger, an astrophysics code for stellar merger, is used as a showcase for a portable, efficient, and scalable high-performance application using HPX.

The book’s core audience is advanced undergraduate and graduate students who want to learn the basics of parallel and distributed C++ programming but are not computer science majors. Basic C++ knowledge, like functions, classes, loops, and conditional statements, is assumed as a requirement, while C++ advanced topics, like generic programming, lambda functions, smart pointers, and move semantics, are briefly summarized in the appendix.


Keywords

Table of contents (19 chapters)

  1. Preliminaries

  2. Introduction to C++ and C++ Standard Library

  3. The C++ Standard Library for Concurrency and Parallelism (HPX)

  4. Parallel Programming

  5. Distributed Programming

Authors and Affiliations

  • Center for Computation and Technology, Louisiana State University, Baton Rouge, USA

    Patrick Diehl, Steven R. Brandt, Hartmut Kaiser

About the authors

Patrick Diehl is a faculty member at the Department of Physics & Astronomy at Louisiana State University (LSU) and a senior research scientist at LSU's Center for Computation and Technology (CCT). His research interests are computational fracture mechanics, scientific computing, and high-performance computing. Next to research, he is devoted to teaching C++ and parallel programming to students and the community.

Steven R. Brandt is the Assistant Director for Computational Science at the Center for Computation and Technology at LSU. His research interests include parallel programming, parallel languages and tools, science gateways, and high performance computing (HPC). He has served as PI on several grants supporting the Einstein Toolkit, a widely used open source project for studying numerical relativity.

Hartmut Kaiser is a faculty member at the CS and EE departments at Louisiana State University (LSU) and a senior research scientist at LSU's Center for Computation and Technology (CCT). He is probably best known for his involvement in open source software projects, such as being the author of several C++ libraries he has contributed to Boost, which are in use by thousands of developers worldwide. His current research is focused on leading the STE||AR group at CCT working on the practical design and implementation of future execution models and programming methods.

Bibliographic Information

  • Book Title: Parallel C++

  • Book Subtitle: Efficient and Scalable High-Performance Parallel Programming Using HPX

  • Authors: Patrick Diehl, Steven R. Brandt, Hartmut Kaiser

  • DOI: https://doi.org/10.1007/978-3-031-54369-2

  • Publisher: Springer Cham

  • eBook Packages: Computer Science, Computer Science (R0)

  • Copyright Information: The Editor(s) (if applicable) and The Author(s), under exclusive license to Springer Nature Switzerland AG 2024

  • Softcover ISBN: 978-3-031-54368-5Due: 03 August 2024

  • eBook ISBN: 978-3-031-54369-2Published: 02 July 2024

  • Edition Number: 1

  • Number of Pages: XVIII, 239

  • Number of Illustrations: 1 b/w illustrations

  • Topics: Professional Computing, Software Engineering/Programming and Operating Systems

Publish with us

Navigation