Towards Generic Parallel Programming in Computer Science Education with Kokkos

Jan Ciesko, David Poliakoff, Daisy S. Hollman, Christian C. Trott, D. Lebrun-Grandié
{"title":"Towards Generic Parallel Programming in Computer Science Education with Kokkos","authors":"Jan Ciesko, David Poliakoff, Daisy S. Hollman, Christian C. Trott, D. Lebrun-Grandié","doi":"10.1109/EduHPC51895.2020.00010","DOIUrl":null,"url":null,"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.","PeriodicalId":269408,"journal":{"name":"2020 IEEE/ACM Workshop on Education for High-Performance Computing (EduHPC)","volume":"1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2020-11-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2020 IEEE/ACM Workshop on Education for High-Performance Computing (EduHPC)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/EduHPC51895.2020.00010","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 2

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.
面向计算机科学教育中的通用并行编程
并行模式、视图和空间是很有前途的抽象,可以捕获程序员的意图以及上下文信息,这些信息可以被底层运行时用来有效地将软件映射到并行硬件。在算法必须满足代码和跨硬件体系结构和供应商编程模型的性能可移植性需求的情况下,这些抽象是有价值的。Kokkos是一个用于主机和加速器架构的并行编程模型,它依赖于这些抽象并以这些需求为目标。它由一个纯c++接口、规范和一个编程库组成。编程库公开模式和类型,并将它们映射到底层抽象机器模型。抽象机器模型提供了并行硬件的通用视图。虽然Kokkos在一些DOE实验室的大规模HPC应用中越来越受欢迎,但我们相信实现的概念会引起包括学术界在内的更广泛受众的兴趣,因为它们可能会为并行编程的通用、供应商和独立于架构的教育做出贡献。在这项工作中,我们深入了解了该编程模型的设计考虑因素,并列出了重要的抽象。此外,我们记录了在Kokkos上进行虚拟课程时获得的最佳实践,并提供了一些资源的指针,读者可能认为这些资源对具有这方面知识的学生的泛型并行编程讲座很有价值。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信