skip to main content
10.1145/3299771.3299798acmotherconferencesArticle/Chapter ViewAbstractPublication PagesisecConference Proceedingsconference-collections
short-paper

Formalizing GPU Instruction Set Architecture in Coq

Published:14 February 2019Publication History

ABSTRACT

GPUs are now a mainstream compute device. They are widely used to render images on medical devices. Today, it has become impossible to imagine AI without them. To build confidence on the accuracy of rendering images and complex calculations, it is essential to consider formalizing the behaviour of GPU Instruction Set Architecture (ISA) at the assembly language level. In this paper, we present the formalization of GPU shader programs. We prove some properties of shader programs with respect to operational semantics of our formal model. We use Coq to mechanize the formalization of our model and proofs.

References

  1. NVIDIA Corporation. 2018. CUDA Parallel Computing. Retrieved December 13, 2018 from https://www.nvidia.in/object/cuda-parallel-computing-in.htmlGoogle ScholarGoogle Scholar
  2. NVIDIA Corporation. 2018. Parallel Thread Execution ISA Version 6.3. Retrieved December 13, 2018 from https://docs.nvidia.com/cuda/parallel-thread-execution/index.htmlGoogle ScholarGoogle Scholar
  3. Georges Gonthier, Assia Mahboubi, and Enrico Tassi. 2016. A Small Scale Reflection Extension for the Coq system. Research Report RR-6455. Inria Saclay Ile de France. https://hal.inria.fr/inria-00258384Google ScholarGoogle Scholar
  4. Khronos Group. 2018. The open standard for parallel programming of heterogeneous systems. Retrieved December 13, 2018 from https://www.khronos.org/opencl/Google ScholarGoogle Scholar
  5. Khronos Group. 2018. The OpenGL ES® Shading Language, Version 3.20.4. Retrieved December 13, 2018 from https://www.khronos.org/registry/OpenGL/specs/es/3.2/GLSL_ES_Specification_3.20.pdfGoogle ScholarGoogle Scholar
  6. Khronos Group. 2018. OpenGL ES®, Version 3.2. Retrieved December 13, 2018 from https://www.khronos.org/registry/OpenGL/index_es.phpGoogle ScholarGoogle Scholar
  7. Andrew Kennedy, Nick Benton, Jonas B.Jensen, and Pierre-Evariste Dagand. 2013. Coq: The World's Best Macro Assembler?. In Proceedings of the 15th Symposium on Principles and Practice of Declarative Programming (PPDP '13). ACM, New York, NY, USA, 13--24. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. Xavier Leroy. 2006. Formal Certification of a Compiler Back-end or: Programming a Compiler with a Proof Assistant. In Conference Record of the 33rd ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL '06). ACM, New York, NY, USA, 42--54. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. Benjamin C. Pierce. 2018. Software Foundations Volume 2. Retrieved December 13, 2018 from https://softwarefoundations.cis.upenn.edu/plf-current/index.htmlGoogle ScholarGoogle Scholar
  10. The Coq Development Team. 2018. The Coq Proof Assistant. Retrieved December 13, 2018 from https://coq.inria.fr/Google ScholarGoogle Scholar
  11. Jiawei Wang, Ming Fu, Lei Qiao, and Xinyu Feng. 2017. Formalizing SPARCv8 Instruction Set Architecture in Coq. In Dependable Software Engineering. Theories, Tools, and Applications, Kim Guldstrand Larsen, Oleg Sokolsky, and Ji Wang (Eds.). Springer International Publishing, Cham, 300--316.Google ScholarGoogle Scholar

Index Terms

  1. Formalizing GPU Instruction Set Architecture in Coq

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in
    • Published in

      cover image ACM Other conferences
      ISEC '19: Proceedings of the 12th Innovations in Software Engineering Conference (formerly known as India Software Engineering Conference)
      February 2019
      238 pages
      ISBN:9781450362153
      DOI:10.1145/3299771

      Copyright © 2019 ACM

      Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 14 February 2019

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Qualifiers

      • short-paper
      • Research
      • Refereed limited

      Acceptance Rates

      Overall Acceptance Rate76of315submissions,24%

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader