FPGA tests don't all work using Quartus
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 48/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- cmake, cpp
調査の方向性
DirectProgramming/C++SYCL_FPGA/ReferenceDesigns/board_testから開始し、レポートに示されているkBinaryNameまたはaocl bineditの使用箇所を探します。指定されたFPGAセットアップ上で、提供されたCMakeおよびmakeコマンドを使用して再現し、その後、board_test.fpgaがlogic_errorなしでKernel Clock Frequency Testを完了し、基準周波数を報告することを確認します。
索引モデルが issue の本文から書いたものです。
説明
Summary
The board_test example (and other examples I've tested) from DirectProgramming/C++SYCL_FPGA/ReferenceDesigns fails on the part of the test that tries to extract the reference frequency using the aocl binedit functionality.
Version
Report oneAPI Toolkit version and oneAPI Sample version or hash.
oneAPI version 2022.0.2
quartus version 20.4
oneAPI sample hash f6660eef7007d0acb7de1bce9c6e5844c6615a80
Environment
Intel Stratix 10, Bittware N520 MX
Steps to reproduce
cd ~/oneAPI-samples/DirectProgramming/C++SYCL_FPGA/ReferenceDesigns/board_test
mkdir build
cd build
cmake .. -DFPGA_BOARD=s10mx:p520_hpc_m210h_g3x16
make fpga
./board_test.fpga
Observed behavior
When compiled and run the board_test.fpga executable fails, with this output at the end of the run:
*****************************************************************
******************* Kernel Clock Frequency Test ***************
*****************************************************************
terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_M_construct null not valid
Digging into the code it is because this functionality:
std::string temp_cmd = "aocl binedit " + kBinaryName + " print .acl.quartus_report";
const char *open_cmd_rep = temp_cmd.c_str();
Doesn't actually work. The executable (board_test.fpga) does not have anything to report when using 1aocl binedit board_test.fpga list, i.e. it produces an empty output:
Sections in package file:
This can be fixed by changing the command to this:
std::string temp_cmd = "aocl binedit " + kBinaryName + ".prj/base.aocx" + " print .acl.quartus_report";
const char *open_cmd_rep = temp_cmd.c_str();
Which then can be used to extract the reference FPGA frequency.
I can commit this as a pull request.
Expected behavior
The board_test to run without issues.
- 主要言語
- C++
- スター
- 1.2k
- フォーク
- 745
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
oneapi-src/oneAPI-samples のほかの issue
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
oneapi-src/oneAPI-samples#2764 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
oneapi-src/oneAPI-samples#2748 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 10/100
oneapi-src/oneAPI-samples#2746 ·
-
Lenovo Thinkpad T440p Ethernet issue warning sign show install multiple times but same issue face オープンquestion
難易度 4/5 3〜5日 初心者へのやさしさ 15/100
oneapi-src/oneAPI-samples#2739 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
oneapi-src/oneAPI-samples#2705 ·
oneapi-src/oneAPI-samples の issue をすべて見る
似ている issue
-
Website Doc Typo オープン
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
-
難易度 1/5 1〜3時間 初心者へのやさしさ 92/100
autowarefoundation/autoware_universe#13413 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
automated-analysis bug memory-safety
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100