Migration of GPU Applications from CUDA to SYCL Programming Model

Yogesh Narayan Gaur, Manju Khanna · 2024

Due to new enhancements in the field of computer architecture and the proliferation of heterogeneous computing devices, there is an increasing demand for portable and efficient programming applications. These applications are essential for harnessing the capabilities of diverse hardware devices found on heterogeneous platforms, which include CPUs, GPUs, NPUs, and FPGAs from different hardware vendors like Intel, Nvidia, and AMD. CUDA-based applications are designed exclusively for execution on Nvidia GPUs, whereas the SYCL standard, combining modern C++ features, allows single-source code to operate on heterogeneous computing devices. This study compares the SYCL and CUDA programming interfaces and provides concepts and guidance on migrating CUDA-based applications to the SYCL interface covering aspects like memory management, kernel launch, execution hierarchy, synchronization, debugging etc. across both programming models. Study also underscores the potential of the SYCL programming interface as a practical solution for attaining both portability and performance in the modern computing systems, particularly across heterogeneous devices, with case-study covering migration of CUDA model-based vector addition code to the SYCL model.

Read the paper · More papers on PaperTik