Preprints of the Keldysh Institute of Applied Mathematics
RUS  ENG    JOURNALS   PEOPLE   ORGANISATIONS   CONFERENCES   SEMINARS   VIDEO LIBRARY   PACKAGE AMSBIB  
General information
Latest issue
Archive

Search papers
Search references

RSS
Latest issue
Current issues
Archive issues
What is RSS



Keldysh Institute preprints:
Year:
Volume:
Issue:
Page:
Find






Personal entry:
Login:
Password:
Save password
Enter
Forgotten password?
Register


Preprints of the Keldysh Institute of Applied Mathematics, 2023, 058, 54 pp.
DOI: https://doi.org/10.20948/prepr-2023-58
(Mi ipmp3190)
 

A no-API approach to massive-parallel architectures

V. A. Frolov, V. A. Galaktionov
References:
Abstract: The work proposes an approach to programming parallel architectures without using parallel programming interfaces (APIs) and parallel directives for various numerical simulation and computer graphics applications. The primary goal of this approach is to resolve the fundamental conflict between cross-platform compatibility and hardware acceleration when developing high-performance programs. This conflict is resolved through the automation of the development process: algorithmic descriptions in C++, free from any specific parallel constructs, are automatically translated into the implementation of the same algorithm, and a realization is generated on an existing parallel architecture programming API (C++ translates to SPIR-V for GPUs, and vector instructions for CPUs). Furthermore, if specific hardware acceleration is required, the programmer can replace individual parts of the generated code by substituting kernels and virtual functions in the generated code. Such substitution allows for code regeneration without losing usermade changes tailored to a particular hardware platform. The developed system operates as a white box, allowing the programmer to read and debug the generated code as if it were written manually. This enables us to easily distinguish translator errors from user errors and, moreover, does not create dependencies on the developed system in projects. The generated code can always be manually rewritten when necessary. The application of the developed technology is considered using the example of one of the most complex and inconvenient problems for GPUs — parallel algorithms for constructing trees.
Keywords: GPU programming, Karras algorithm.
Document Type: Preprint
Language: Russian
Citation: V. A. Frolov, V. A. Galaktionov, “A no-API approach to massive-parallel architectures”, Keldysh Institute preprints, 2023, 058, 54 pp.
Citation in format AMSBIB
\Bibitem{FroGal23}
\by V.~A.~Frolov, V.~A.~Galaktionov
\paper A no-API approach to massive-parallel architectures
\jour Keldysh Institute preprints
\yr 2023
\papernumber 058
\totalpages 54
\mathnet{http://mi.mathnet.ru/ipmp3190}
\crossref{https://doi.org/10.20948/prepr-2023-58}
Linking options:
  • https://www.mathnet.ru/eng/ipmp3190
  • https://www.mathnet.ru/eng/ipmp/y2023/p58
  • Citing articles in Google Scholar: Russian citations, English citations
    Related articles in Google Scholar: Russian articles, English articles
    Препринты Института прикладной математики им. М. В. Келдыша РАН
     
      Contact us:
     Terms of Use  Registration to the website  Logotypes © Steklov Mathematical Institute RAS, 2024