Forum Discussion
cagxel
New Contributor
1 year agoPI_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. Nativ...
- 1 year ago
Hello, I was able to solve the problem,
Turns out setting the variable CL_CONTEXT_MPSIM_DEVICE_INTELFPGA causes problems with emulation and debugging. Unsetting this variable fixed my problem.
BoonBengT_Altera
Moderator
1 year agoHi @cagxel,
Noted on the GCC version, and yea it should be meeting the requirement.
Based on the error message it seems that some library are not being source correctly.
Would suggest to source the 'setvars.sh' (usually in the oneapi installation path) to set the correct library.
After that you can run the 'fpga_sys_check.sh' to check on the env settings to confirm.
Hope that clarify.
Best Wishes
BB