Supporting Unified Shader Specialization by Co-opting C++ Features

Author:

Seitz Kerry A.1,Foley Theresa2,Porumbescu Serban D.3,Owens John D.3

Affiliation:

1. University of California, Davis, Department of Computer Science, One Shields Avenue, Davis, CA, USA

2. NVIDIA, 2788 San Tomas Expressway, Santa Clara, CA, USA

3. University of California, Davis, Department of Electrical and Computer Engineering, One Shields Avenue, Davis, CA, USA

Abstract

Modern unified programming models (such as CUDA and SYCL) that combine host (CPU) code and GPU code into the same programming language, same file, and same lexical scope lack adequate support for GPU code specialization, which is a key optimization in real-time graphics. Furthermore, current methods used to implement specialization do not translate to a unified environment. In this paper, we create a unified shader programming environment in C++ that provides first-class support for specialization by co-opting C++'s attribute and virtual function features and reimplementing them with alternate semantics to express the services required. By co-opting existing features, we enable programmers to use familiar C++ programming techniques to write host and GPU code together, while still achieving efficient generated C++ and HLSL code via our source-to-source translator.

Funder

Intel Corporation

Nvidia

Publisher

Association for Computing Machinery (ACM)

Subject

Computer Graphics and Computer-Aided Design,Computer Science Applications

Reference36 articles.

1. Amazon Web Services Inc. 2021. Amazon Lumberyard. https://aws.amazon.com/lumberyard/. Amazon Web Services Inc. 2021. Amazon Lumberyard. https://aws.amazon.com/lumberyard/.

2. Apple Inc. 2014. Metal. https://developer.apple.com/documentation/metal. Apple Inc. 2014. Metal. https://developer.apple.com/documentation/metal.

3. Apple Inc. 2021. Metal Shading Language Specification Version 2.3. https://developer.apple.com/metal/Metal-Shading-Language-Specification.pdf Apple Inc. 2021. Metal Shading Language Specification Version 2.3. https://developer.apple.com/metal/Metal-Shading-Language-Specification.pdf

4. Sean Baxter. 2021. Circle C++ Shaders. https://github.com/seanbaxter/shaders/blob/master/README.md. Sean Baxter. 2021. Circle C++ Shaders. https://github.com/seanbaxter/shaders/blob/master/README.md.

5. Specialization Opportunities in Graphical Workloads

Cited by 2 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3