PI_ERROR_DEVICE_NOT_AVAILABLE while executing/debugging FPGA_Compile example on EMULATOR
Hello, I am trying to compile and debug the SYCL++_FPGA examples on Github. I am getting following error when I try to compile for emulator. Caught a SYCL host exception: Native API failed. Native API returns: -2 (PI_ERROR_DEVICE_NOT_AVAILABLE) -2 (PI_ERROR_DEVICE_NOT_AVAILABLE) terminate called after throwing an instance of 'sycl::_V1::runtime_error' what(): Native API failed. Native API returns: -2 (PI_ERROR_DEVICE_NOT_AVAILABLE) -2 (PI_ERROR_DEVICE_NOT_AVAILABLE) Aborted (core dumped) However once I make and execute for simulation I get no problem and it somehow also fixes the problem for Emulator. You can find the step by step execution in the screenshot. I also get the same error when I try to check devices. sycl-ls However, as you can see from the screenshot, executing for simulation also fixes this. Even executing simulation fixes this issue for the exe, I still get the same error when I try to debug the code, I still get the same error for the device selector queue. Mainly for this part: sycl::queue q(selector); I tried with both -DCMAKE_BUILD_TYPE=Debug flag and without it. I also tried same steps for FPGA_Template example but exactly same thing happens. Any help is appreciated.Solved2.1KViews0likes9Comments