Engineering Papers⌕ Search

DOE OSTI · 1814261

Towards Generic Parallel Programming in Computer Science Education with Kokkos

Abstract

Parallel patterns, views, and spaces are promising abstractions to capture the programmer's intent as well as the contextual information that can be used by an underlying runtime to efficiently map software to parallel hardware. These abstractions can be valuable in cases where an algorithm must accommodate requirements of code and performance portability across hardware architectures and vendor programming models. Kokkos is a parallel programming model for host- and accelerator architectures that relies on these abstractions and targets these requirements. It consists of a pure C++ interface, a specification, and a programming library. The programming library exposes patterns and types and maps them to an underlying abstract machine model. The abstract machine model offers a generic view of parallel hardware. While Kokkos is gaining popularity in large-scale HPC applications at some DOE laboratories, we believe that the implemented concepts are of interest to a broader audience including academia as they may contribute to a generic, vendor, and architecture-independent education of parallel programming. In this work, we give an insight into the design considerations of this programming model and list important abstractions. Further, we document best practices obtained from giving virtual classes on Kokkos and give pointers to resources that the reader may consider valuable for a lecture on generic parallel programming for students with preexisting knowledge on this matter.

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Ciesko, Jan, Poliakoff, David Zoeller, Hollman, Daisy Sophia, Trott, Christian, Lebrun-Grandie, Damien. 2020-11-01. Towards Generic Parallel Programming in Computer Science Education with Kokkos. https://www.osti.gov/biblio/1814261

Cite the original work for its findings. Save a collection to share your selection of sources.