Skip to content

Latest commit

 

History

History
105 lines (79 loc) · 4.66 KB

README.md

File metadata and controls

105 lines (79 loc) · 4.66 KB

SYCL for Vitis: experimental melting pot with Intel oneAPI DPC++ SYCL and triSYCL for AMD FPGA and AIE CGRA

This project is about assessing the viability of unifying 2 of the current open-source implementations of the SYCL standard https://www.khronos.org/sycl to provide a strong modern single-source C++ solution for heterogeneous computing based on Clang*/LLVM*.

All this is an experimental work-in-progress open-source research project but might be interesting for anyone versed into system-wide modern C++23 and heterogeneous computing involving FPGA, CGRA, GPU, DSP, other accelerators or just CPU from various vendors at the same time in the same program.

Note: this project is no longer maintained:

On the FPGA side, AMD Vitis tools rely on old LLVM versions with typed pointer implementation while modern LLVM is now using opaque pointer, making the task even more difficult for this project.

Some of the AIE ideas developed in this project are going on in the MLIR AIE and MLIR AIR projects with a new MLIR C++ front-end based on ClangIR.

What is SYCL

SYCL is a single-source modern C++-based DSEL (Domain Specific Embedded Language) aimed at facilitating the programming of heterogeneous accelerators.

triSYCL for AMD FPGA and AIE1 CGRA with AMD Vitis v++

Some LLVM passes and some C++ SYCL runtime from https://github.com/triSYCL/triSYCL are merged-in with a new Clang driver and scripts to use AMD Vitis v++ as a back-end for AMD FPGA using the open-source runtime and device-driver https://github.com/Xilinx/XRT

ArchGenMLIR

The triSYCL project also contains part of the ArchGenMLIR tool. ArchGenMLIR is a tool to automatically generate approximations for mathematical fixed-point functions to optimize hardware usage for low precision computations. The similar pre-MLIR ArchGen was presented at the following conference:

Luc FORGET, Gauthier HARNISCH, Ronan KERYELL and Florent DE DINECHIN. « A single-source C++ 20 HLS flow for function evaluation on FPGA and beyond. » In HEART2022: International Symposium on Highly-Efficient Accelerators and Reconfigurable Technologies, pages 51–58. Association for Computing Machinery, Tsukuba, Japan, June 2022. doi:10.1145/3535044. 3535051. https://hal.archives-ouvertes.fr/hal-03684757

Intel oneAPI DPC++ SYCL compiler and runtime libraries using Clang/LLVM technology

This is a fork of the Intel SYCL upstreaming effort (https://github.com/intel/llvm/tree/sycl) with some alterations made to allow SYCL compilation for AMD FPGA. However, the alterations made shouldn't affect previous targets supported by the Intel tool, so in theory it should be possible to use different accelerators from different vendors at the same time, including for example an Intel FPGA and an AMD FPGA.

SYCL Related Documentation

The Build DPC++ toolchain from the Intel oneAPI DPC++ SYCL project is a good starting point to get to grips with building the compiler and what a basic SYCL example looks like.

It also showcases the requirements to get the project and examples running with the Intel OpenCL runtime or other back-ends.

This fork of the project can be compiled the same way and used in conjunction with the normal compiler commands as demonstrated. However, the software requirements for AMD FPGA compilation and the compiler invocation are not the same and are documented elsewhere.

License

See LICENSE.txt for details.

Contributing

See CONTRIBUTING.md for details.

*Other names and brands may be claimed as the property of others.

oneAPI DPC++ is an open, cross-architecture language built upon the ISO C++ and Khronos SYCL* standards. DPC++ extends these standards with a number of extensions, which can be found in sycl/doc/extensions directory.

*Other names and brands may be claimed as the property of others.