25936

An Auto-Programming Approach to Vulkan

Vladimir Frolov, Vadim Sanzharov, Vladimir Galaktionov, Alexandr Scherbakov
Keldysh Institute of Applied Mathematics, Miusskaya sq., 4, Moscow, 125047, Russia
Computer Graphics and Vision (GraphiCon 2021), 2021

@article{frolov2021auto,

   title={An Auto-Programming Approach to Vulkan},

   author={Frolov, Vladimir and Sanzharov, Vadim and Galaktionov, Vladimir and Scherbakov, Alexandr},

   year={2021}

}

Download Download (PDF)   View View   Source Source   

458

views

We propose a novel high-level approach for software development on GPU using Vulkan API. Our goal is to speed-up development and performance studies for complex algorithms on GPU, which is quite difficult and laborious for Vulkan due to large number of HW features low level details. The proposed approach uses auto programming to translate ordinary C++ to optimized Vulkan implementation with automatic shaders generation, resource binding and fine-grained barriers placement. Our model is not general-purpose programming, but is extendible and customer-focused. For a single C++ input our tool can generate multiple different implementations of algorithm in Vulkan for different cases or types of hardware. For example, we automatically detect reduction in C++ source code and then generate several variants of parallel reduction on GPU: with optimization for different warp size, with or without atomics, using or not subgroup operations. Another example is GPU ray tracing applications for which we can generate different variants: pure software implementation in compute shader, using hardware accelerated ray queries, using full RTX pipeline. The goal of our work is to increase productivity of developers who are forced to use Vulkan due to various required hardware features in their software but still do care about cross-platform ability of the developed software and want to debug their algorithm logic on the CPU. Therefore, we assume that the user will take generated code and integrate it with hand-written Vulkan code.
No votes yet.
Please wait...

* * *

* * *

* * *

HGPU group © 2010-2022 hgpu.org

All rights belong to the respective authors

Contact us: