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'
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
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-file/m-p/1312950#M2875, we will no longer monitor this thread.We will continue addressing this issue in the other thread.