oneapi-src / oneapi-src/oneAPI-samples
Can't build "fpga_compile" sample for Intel PAC D5005
还没有人认领这个 Issue。
- 主要语言
- C++
- 星标
- 1.2k
- 派生
- 745
- PR 合并指标
- 30 天内没有已合并 PR
描述
Summary
Can't build "fpga_compile" sample for Intel PAC D5005 successfully.
Version
Sample code: branch 2023.0_patch (DirectProgramming/DPC++FPGA/Tutorials/GettingStarted/fpga_compile)
oneAPI: 2023.1.0.46401
Quartus: Quartus-pro-22.4.0.94
Environment
OS: Ubuntu 22.04/Debian 11
HW: Intel PAC D5005
lspci | grep 0b2b
01:00.0 Processing accelerators: Intel Corporation Device 0b2b (rev ff)
Steps to reproduce
source /opt/intel/oneapi/setvars.sh
export QUARTUS_ROOTDIR_OVERRIDE=/opt/intelFPGA_pro/22.4/quartus
mkdir build
cd build
cmake .. -DFPGA_DEVICE=intel_s10sx_pac:pac_s10
make fpga
2 warnings generated.
[100%] Linking CXX executable ../fpga_compile.fpga
aoc: Compiling for FPGA. This process may take several hours to complete. Prior to performing this compile, be sure to check the reports to ensure the design will meet your performance targets. If the reports indicate performance targets are not being met, code edits may be required. Please refer to the oneAPI FPGA Optimization Guide for information on performance tuning applications for FPGAs.
Error: The board package being used only supports report generation/emulation/runtime, please use the board package shipped in the FPGA addon instead.
Error: Exiting.
llvm-foreach:
icpx: error: fpga compiler command failed with exit code 1 (use -v to see invocation)
make[3]: *** [src/CMakeFiles/fpga_compile.fpga.dir/build.make:97: fpga_compile.fpga] Error 1
make[2]: *** [CMakeFiles/Makefile2:208: src/CMakeFiles/fpga_compile.fpga.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:241: src/CMakeFiles/fpga.dir/rule] Error 2
make: *** [Makefile:189: fpga] Error 2
Observed behavior
I have already looked at this #1350 . If using -DFPGA_DEVICE=agilex, it can be build successfully.
But for PAC D5005, I should use -DFPGA_DEVICE=intel_s10sx_pac:pac_s10 according to the README document. Then the error appears.
Besides, the board package is available.
/opt/intel/oneapi/compiler/2023.1.0/linux/lib/oclfpga/board$ ls
intel_a10gx_pac intel_s10sx_pac
Expected behavior
FPGA bitstreams generated for target D5005.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 DirectProgramming/DPC++FPGA/Tutorials/GettingStarted/fpga_compile 开始,阅读其中的 README 以了解 D5005 设备配置。使用 -DFPGA_DEVICE=intel_s10sx_pac:pac_s10 通过 CMake 重现该失败,然后检查板卡包和构建输出。当示例为 D5005 生成 FPGA 位流且不出现板卡包错误时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- cmake, cpp
- 领域
- build-system, compilers
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100