Intel® oneAPI DPC++/C++ Compiler
Talk to fellow users of Intel® oneAPI DPC++/C++ Compiler and companion tools like Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and Intel® Distribution for GDB*
790 Discussões

Can DPC++ programs be compiled into *.so and called by C?

di__liu
Principiante
2.038 Visualizações

Our network equipment wants to use the FPGA card to do some traffic analysis.

Since our protocol stack is implemented in C , we want to use FPGA by calling a DPC ++ function from a C program.

Is this feasible?

Thanks!

0 Kudos
4 Respostas
RahulV_intel
Moderador
2.038 Visualizações

Hi,

Thanks for reaching out to us. We will get back to you soon.

 

Rahul

Varsha_M_Intel
Funcionário
2.038 Visualizações

Hi,

You should be able to create a .so file from dpcpp programs and called from C. You will need to export the function as "C" to be called by C.

https://docs.microsoft.com/en-us/cpp/build/exporting-cpp-functions-for-use-in-c-language-executables?view=vs-2019.

-Varsha

di__liu
Principiante
2.038 Visualizações

Thanks!

I will try it.

MaheshB_Intel
Funcionário
1.850 Visualizações

 Hi,

As we have not heard back from you, we are considering that your issue has been resolved and we have answered all your queries. So we will no longer respond to this thread. If you require additional assistance from Intel, please start a new thread. Any further interaction in this thread will be considered community only

Have a Good day!


Responder