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

cannot run GitHub samples on OneAPI FPGA emulator

wan12
Beginner
509 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
4 Replies
BoonBengT_Intel
Moderator
409 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
Jessica_Intel
Employee
384 Views

Hi @wan12 ,

 

The error you're seeing is at compile time. Could you please try un-installing and re-installing the Base Toolkit and FPGA Support Package? Other users have reported that re-installing the tools fixes this problem.

 

Jessica

0 Kudos
BoonBengT_Intel
Moderator
288 Views

Hi @wan12,


Greetings, just checking in to see if there is any further doubts in regards to this matter.

Hope your doubts have been clarified.


Best Wishes

BB


0 Kudos
BoonBengT_Intel
Moderator
221 Views

Hi @wan12,


Greetings, as we do not receive any further clarification/updates on the matter, hence would assume challenge are overcome. Please login to ‘ https://supporttickets.intel.com/s/?language=en_US’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions. For new queries, please feel free to open a new thread and we will be right with you. Pleasure having you here.


Best Wishes

BB


0 Kudos
Reply