Intel® FPGA University Program
University Program Material, Education Boards, and Laboratory Exercises
1224 Discussions

OpenCL platform ID is empty

GabrielMarco
New User
91 Views

I'm trying to use oneAPI, I followed the tutorial on Altera's YouTube channel, where I would have to install the following packages: OneAPI base toolkit and FPGA supporting DCP++/C++ Compile, I followed the steps as in the tutorial.

mkdir build
cd build
cmake .. -DPART=1
make fpga_emu

but when executing this last command it gives this error:

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]: *** [CMakeFiles/fpga_emu.dir/build.make:97: vector_add.fpga_emu] Error 14
make[2]: *** [CMakeFiles/Makefile2:85: CMakeFiles/fpga_emu.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:92: CMakeFiles/fpga_emu.dir/rule] Error 2
make: *** [Makefile:124: fpga_emu] Error 2

How do I solve this? Give me the step by step, because the Intel documentation is lacking, how do I configure this open

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

Hi @GabrielMarco,


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

Based on the error mention it seems that you might have missed some other required software, which I suspected it maybe the 'FPGA Support Package for the Intel® oneAPI DPC++/C++ Compiler' (https://www.intel.com/content/www/us/en/developer/tools/oneapi/fpga-download.html?operatingsystem=windows&windows-install=offline). More details of of which software is required you can refer to the oneAPI handbook in the link below:

https://www.intel.com/content/www/us/en/docs/oneapi-fpga-add-on/developer-guide/2025-0/installing-the-intel-oneapi-fpga-development.html


And once all is installed would recommend to refer to steps #5 in the link above to set the required environment variable. Once all is set you will be good to go.


Note: Also here is the link is system requirement for the oneAPI tools (https://www.intel.com/content/www/us/en/developer/articles/system-requirements/oneapi-dpcpp/2025.html)


Best Wishes

BB


0 Kudos
Reply