oneAPI on Ubuntu 22.04: make fpga and fpga_sim erro
Hello.
I'm testing the oneAPI ToolKit version 2024.0 over a Ubuntu 22.04 server OS.
I installed oneAPI according to the "Get the Intel® oneAPI Base Toolkit" from Intel page.
Also, I have Quartus Prime Pro 23.1 installed and I have an Intel Cyclone 10 GX FPGA device installed on the host with its BSP.
So, I got down the oneAPI-Samples applications to test the platform.
I executed the Vector Add application with both 'cpu-gpu' and 'fpga _emu' options (make cpu-gpu) successfully, but when I dfined the 'fpga_ sim' or 'fpga' options, I got the following error:
--------------------------------
$ make fpga_sim
[ 50%] Building CXX object src/CMakeFiles/vector-add-usm.fpga_sim.dir/vector-add-usm.cpp.o
[100%] Linking CXX executable ../vector-add-usm.fpga_sim
aoc: Compiling for Simulator.
Error: Simulation system generation FAILED.
Refer to vector-add-usm.fpga_sim.prj/vector_add_usm_fpga_sim.log for details.
sh: 0: getcwd() failed: No such file or directory
sh: 1: cd: getcwd() failed: No such file or directory
Error: Could not open work directory
llvm-foreach:
icpx: error: fpga compiler command failed with exit code 1 (use -v to see invocation)
--------------------------------
The vector_add_usm_fpga_sim.log file has some indications:
-------------------------------
2024.01.17.19:52:11 Warning: dpic_ZTSZ9VectorAddRN4sycl3_V15queueEPKiS4_PimEUlT_E.dpic_ZTSZ9VectorAddRN4sycl3_V15q
ueueEPKiS4_PimEUlT_E.dpi_control_stream_writes_active: Interface has no signals
2024.01.17.19:52:11 Error: dpic_ZTSZ9VectorAddRN4sycl3_V15queueEPKiS4_PimEUlT_E: deviceFamily "Agilex 7" is out of
range: "Arria 10", "Cyclone 10 GX", "None", "Unknown"
2024.01.17.19:52:11 Error: Generation failed with exit code 3: 1 Error, 1 Warning
2024.01.17.19:52:11 Info: Finished: Create simulation model
2024.01.17.19:52:11 Info: Starting: Create simulation script
2024.01.17.19:52:11 Info: sim-script-gen --system-file=/tmp/vector-add-usm-c1ec0a-4c11fe/ip/mpsim/dpic_ZTSZ9VectorAddRN4sycl3_V15queueEPKiS4_PimEUlT_E.ip --output-directory=/tmp/vector-add-usm-c1ec0a-4c11fe/ip/mpsim/dpic_ZTSZ9VectorAddRN4sycl3_V15queueEPKiS4_PimEUlT_E/sim --use-relative-paths=true
2024.01.17.19:52:11 Error: File /tmp/vector-add-usm-c1ec0a-4c11fe/ip/mpsim/dpic_ZTSZ9VectorAddRN4sycl3_V15queueEPKiS4_PimEUlT_E/dpic_ZTSZ9VectorAddRN4sycl3_V15queueEPKiS4_PimEUlT_E.spd not found. Please generate simulation files for system file /tmp/vector-add-usm-c1ec0a-4c11fe/ip/mpsim/dpic_ZTSZ9VectorAddRN4sycl3_V15queueEPKiS4_PimEUlT_E.ip before generating simulation scripts.
2024.01.17.19:52:11 Info: Finished: Create simulation script
2024.01.17.19:52:11 Info: Generation of /tmp/vector-add-usm-c1ec0a-4c11fe/ip/mpsim/dpic_ZTSZ9VectorAddRN4sycl3_V15queueEPKiS4_PimEUlT_E.ip (dpic_ZTSZ9VectorAddRN4sycl3_V15queueEPKiS4_PimEUlT_E) took 408 ms
2024.01.17.19:52:11 Info:
2024.01.17.19:52:11 Warning: Quartus project not specified. Use --quartus-project and --rev to specify a Quartus project and revision.
--------------------------------
I didn't figure out how to define de Cyclone 10 GX FPGA as a target device parameter.
I appreciate any suggestion on solve this issue.
Thanks.