Community
cancel
Showing results for 
Search instead for 
Did you mean: 
di__liu
Beginner
170 Views

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

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!

Tags (1)
0 Kudos
3 Replies
RahulV_intel
Moderator
170 Views

Hi,

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

 

Rahul

Varsha_M_Intel
Employee
170 Views

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....

-Varsha

di__liu
Beginner
170 Views

Thanks!

I will try it.

Reply