Forum Discussion

student1's avatar
student1
Icon for New Contributor rankNew Contributor
4 years ago

C++ for FPGA

Hi,

Can I write a program in C++, compile using DPC++ compiler generate bit stream using the add on toolkit and offload it to an FPGA. My question is ,can the source code be in C++ or should it only be DPC++?

Thank you.

2 Replies

  • Hi @student1,

    Thank you for posting in Intel community forum and hope all is well.
    Per my understanding, I would say yes you would be able to compile C++ code with DPC++ compiler, as it was build based on C++.
    However for best performance on specific accelerators, there might be a specific tuning required in the code to allow that. (More details on the cross performance architecture can be found here)
    Note: here are also some good references for the supported/required utilities for OneAPI.

    Best Wishes
    BB


  • Hi @student1,

    As we do not receive any further clarification on what is provided. Hence thread will now be transitioned to community support for further help on doubts in this thread. Pleasure having you here.

    Best Wishes
    BB