FPGA tests don't all work using Quartus
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- cmake, cpp
- Ambito
- embedded-iot, testing-qa
Direzione di ricerca
Iniziare in DirectProgramming/C++SYCL_FPGA/ReferenceDesigns/board_test e cercare l’utilizzo di kBinaryName o aocl binedit mostrato nel report. Riprodurre il problema con i comandi CMake e make forniti sulla configurazione FPGA indicata, quindi verificare che board_test.fpga completi il Kernel Clock Frequency Test senza il logic_error e riporti la frequenza di riferimento.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- C++
- Stelle
- 1.2k
- Fork
- 745
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di oneapi-src/oneAPI-samples
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
oneapi-src/oneAPI-samples#2764 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
oneapi-src/oneAPI-samples#2748 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 10/100
oneapi-src/oneAPI-samples#2746 ·
-
Lenovo Thinkpad T440p Ethernet issue warning sign show install multiple times but same issue face Apertaquestion
Difficoltà 4/5 3-5 giorni Idoneità per principianti 15/100
oneapi-src/oneAPI-samples#2739 ·
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
oneapi-src/oneAPI-samples#2705 ·
Tutte le issue di oneapi-src/oneAPI-samples
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
-
Sensor initialization takes very long when `--initial-sim-time` is set to current UNIX timestamp Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
gazebosim/gz-sensors#662 · 1 commento ·
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
comp-datalake
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
ClickHouse/ClickHouse#121222 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
LadybirdBrowser/ladybird#12123 ·