Intel® DevCloud
Help for those needing help starting or connecting to the Intel® DevCloud
1137 Discussions

The compilation problem of calling FPGA and GPU in file

HYB
Beginner
243 Views

Use the FPGA queue in the main file test.cpp and call the function in gpu.cpp. The function uses the GPU queue. How to compile the file, the following compilation statement has an error: terminate called after throwing an instance of 'CL:: sycl:: runtime_ error'

Compile command:

dpcpp -DFPGA_EMULATOR \-fsycl-targets=spir64_fpga-unknown-unknown-sycldevice gpu.cpp \-c -o gpu.o

dpcpp -DFPGA_EMULATOR \-fsycl-targets=spir64_fpga-unknown-unknown-sycldevice,spir64-unknown-unknown-sycldevice test.cpp gpu.o -o test

test.cpp

HYB_0-1631343993316.png

gpu.hpp

HYB_1-1631344015194.png

gpu.cpp

HYB_2-1631344041166.png

HYB_3-1631344078046.png

 

0 Kudos
1 Reply
JananiC_Intel
Moderator
208 Views

Hi,


Thanks for posting in Intel forums.


Since this is a duplicate thread of https://community.intel.com/t5/Intel-DevCloud/The-compilation-problem-of-calling-FPGA-and-GPU-in-fil..., we will no longer monitor this thread.We will continue addressing this issue in the other thread. 


Regards,

Janani Chandran


Reply