oneapi-src / oneapi-src/oneAPI-samples

Can't build "fpga_compile" sample for Intel PAC D5005

オープン
#1,701 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

bug
主要言語
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.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. 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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。