- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @GabrielMarco,
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, I tried, but it didn't work, I still get the openCL platform error, I followed the instructions given and nothing worked
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @GabrielMarco,
Unfortunate to hear that, when running the .sh files to set the environment variable, what are the output?
Also which oneAPI version that you are using and which OS you are building with?
Best Wishes
BB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @BoonBengT_Altera . I'm using version oneAPI base toolkit 2025.0.1, and oneAPI DPC++/C++ Compiler is 2025.0.0, because I want to use hls4ml which has not yet been updated to the new version of oneapi. My SO is Linux
source /opt/intel/oneapi/setvars.sh
:: initializing oneAPI environment ...
bash: BASH_VERSION = 5.2.21(1)-release
args: Using "$@" for setvars.sh arguments:
:: advisor -- latest
:: ccl -- latest
:: compiler -- latest
:: dal -- latest
:: debugger -- latest
:: dev-utilities -- latest
:: dnnl -- latest
:: dpcpp-ct -- latest
:: dpl -- latest
:: ipp -- latest
:: ippcp -- latest
:: ishmem -- latest
:: mkl -- latest
:: mpi -- latest
:: pti -- latest
:: tbb -- latest
:: umf -- latest
:: vtune -- latest
:: oneAPI environment initialized ::
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
And he sometimes complains about this error:
/home/marcolino/sample_test/src/firmware/defines.h:4:10: fatal error: 'sycl/ext/intel/ac_types/ac_fixed.hpp' file not found
4 | #include <sycl/ext/intel/ac_types/ac_fixed.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[3]: *** [CMakeFiles/lib.dir/build.make:76: CMakeFiles/lib.dir/src/firmware/myproject.cpp.o] Error 1
make[2]: *** [CMakeFiles/Makefile2:102: CMakeFiles/lib.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:109: CMakeFiles/lib.dir/rule] Error 2
make: *** [Makefile:124: lib] Error 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @GabrielMarco,
Thank you for patients, I see that you have posted the a similar question here: https://community.intel.com/t5/forums/forumtopicpage/board-id/fpga-university-program/message-id/5231#M5231
Hence lets proceed to use that latest error you provided to troubleshoot further.
Please do let us know if there is any concern.
Best Wishes
BB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @GabrielMarco,
Greetings, since we do not receive any further clarification/updates on the matter thread will proceed to follow up via the latest threads.
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

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page