Skip to main content
U.S. Department of Energy
Office of Scientific and Technical Information

Kokkos GPU Compiler

Software ·
DOI:https://doi.org/10.11578/dc.20171025.1800· OSTI ID:code-4432 · Code ID:4432

The Kokkos Clang compiler is a version of the Clang C++ compiler that has been modified to perform targeted code generation for Kokkos constructs in the goal of generating highly optimized code and to provide semantic (domain) awareness throughout the compilation toolchain of these constructs such as parallel for and parallel reduce. This approach is taken to explore the possibilities of exposing the developer’s intentions to the underlying compiler infrastructure (e.g. optimization and analysis passes within the middle stages of the compiler) instead of relying solely on the restricted capabilities of C++ template metaprogramming. To date our current activities have focused on correct GPU code generation and thus we have not yet focused on improving overall performance. The compiler is implemented by recognizing specific (syntactic) Kokkos constructs in order to bypass normal template expansion mechanisms and instead use the semantic knowledge of Kokkos to directly generate code in the compiler’s intermediate representation (IR); which is then translated into an NVIDIA-centric GPU program and supporting runtime calls. In addition, by capturing and maintaining the higher-level semantics of Kokkos directly within the lower levels of the compiler has the potential for significantly improving the ability of the compiler to communicate with the developer in the terms of their original programming model/semantics.

Short Name / Acronym:
Kokkos Clang
Site Accession Number:
7076
Software Type:
Scientific
License(s):
Other (Commercial or Open-Source)
Research Organization:
Los Alamos National Laboratory (LANL), Los Alamos, NM (United States)
Sponsoring Organization:
USDOE

Primary Award/Contract Number:
AC52-06NA25396
DOE Contract Number:
AC52-06NA25396
Code ID:
4432
OSTI ID:
code-4432
Country of Origin:
United States

Similar Records

Kokkos GPU Compiler
Software · Fri Jul 15 00:00:00 EDT 2016 · OSTI ID:1310548

Enhancing Kokkos with OpenACC
Journal Article · Sun Jun 01 00:00:00 EDT 2014 · The International Journal of High Performance Computing Applications · OSTI ID:2439861

KokkACC: Enhancing Kokkos with OpenACC
Conference · Tue Nov 01 00:00:00 EDT 2022 · OSTI ID:2000279

Related Subjects