Intel® High Level Design
Support for Intel® High Level Synthesis Compiler, DSP Builder, OneAPI for Intel® FPGAs, Intel® FPGA SDK for OpenCL™
707 Discussions

cannot run GitHub samples on OneAPI FPGA emulator

wan12
Beginner
124 Views

I recently installed Ubuntu version 22.04 on my Mac2018. After the installation, I successfully installed the Intel® oneAPI Base Toolkit (Base Kit) along with the FPGA Support Package for the Intel oneAPI DPC++/C++ Compiler.

However, I cannot compile the program on the FPGA emulator although I tried the recommended configurations by following Intel's documentation. The error shows below.


wanyu@wanyu-MacBookPro15-1:~/Desktop/vector-add/build$ make fpga_emu
[ 50%] Linking CXX executable ../vector-add-usm.fpga_emu
OpenCL platform ID is empty
OpenCL platform name is empty
Failed to find any of these OpenCL platforms:
  Intel(R) FPGA Emulation Platform for OpenCL(TM)
  Intel(R) FPGA Emulation Platform for OpenCL(TM) (preview)
llvm-foreach:
icpx: error: fpga compiler command failed with exit code 14 (use -v to see invocation)
make[3]: *** [src/CMakeFiles/vector-add-usm.fpga_emu.dir/build.make:97: vector-add-usm.fpga_emu] Error 14
make[2]: *** [CMakeFiles/Makefile2:159: src/CMakeFiles/vector-add-usm.fpga_emu.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:192: src/CMakeFiles/fpga_emu.dir/rule] Error 2
make: *** [Makefile:163: fpga_emu] Error 2


Could you kindly provide guidance on the specific configurations or steps that need to be performed during the installation or post-installation to enable FPGA emulator support?

Thank you for your time and support. I look forward to your response.

Thank you,
Wanyu

Labels (1)
0 Kudos
1 Reply
BoonBengT_Intel
Moderator
24 Views

Hi @wan12,


Thank you for posting in Intel community forum and hope all is well.

Based on the error message seen, suspecting that certain environment variable are not set hence the missing platform ID.

And also check on the required GCC version which is required for the emulation.

More details can be found in the link below:

- https://www.intel.com/content/www/us/en/docs/oneapi-fpga-add-on/developer-guide/2025-0/compile-and-emulate-your-design.html


Hope that clarify.


Best Wishes

BB


0 Kudos
Reply