当前位置:网站首页>Hls4ml/vivado HLS error reporting solution
Hls4ml/vivado HLS error reporting solution
2022-07-01 19:48:00 【heisenberg. liu】
use HLS4ML To hls_model.build() It's a mistake
Wrong content
/opt/Xilinx/Vivado/2019.1/include/mpfr.h:724:28: error: ‘mpfr_srcptr’ was not declared in this scope
__MPFR_DECLSPEC int mpfr_custom_get_kind _MPFR_PROTO ((mpfr_srcptr));
^~~~~~~~~~~
make: *** [obj/myproject.cpp_pre.cpp.tb.o] Error 1
ERROR: [COSIM 212-317] C++ compile error.
ERROR: [COSIM 212-321] EXE file generate failed.
ERROR: [COSIM 212-321] EXE file generate failed.
ERROR: [COSIM 212-331] Aborting co-simulation: C simulation failed, compilation errors.
ERROR: [COSIM 212-5] *** C/RTL co-simulation file generation failed. ***
ERROR: [COSIM 212-4] *** C/RTL co-simulation finished: FAIL ***
command 'ap_source' returned error code
while executing
"source build_prj.tcl"
("uplevel" body line 1)
invoked from within
"uplevel \#0 [list source $arg] "
INFO: [HLS 200-112] Total elapsed time: 578.3 seconds; peak allocated memory: 1.226 GB.
INFO: [Common 17-206] Exiting vivado_hls at Tue Dec 14 15:45:32 2021...
child process exited
The reason is because GCC File conflict , It's used here vivado2019.2
Solution :
- hold
/tools/Xilinx/Vivado/2019.2/include/mpfr.hImport header file in the system<gmp.h>Import into the current folder instead”gmp.h“
#ifndef __GMP_H__
#include "gmp.h"
#endif
- In each source file (main.cpp and test.cpp, The main file path is
my-hls-test/fireware/myproject.cpp,test The file inmy-hls-test/fmyproject_test.cpp) Add the following sentence at the top of the head , The added position of this sentence is a little ahead
#include "/tools/Xilinx/Vivado/2019.2/include/gmp.h"
#define __gmp_const const
This bug It needs to be generated every time my-hls-test Manually modify the folder after cpp file , So it can't be in python Use... Directly in the document hls_model.build(), Command line input is required hls4ml build -p my-hls-test -a
Reference resources :
边栏推荐
- Leetcode 1380 lucky numbers in matrix [array] the leetcode path of heroding
- Use the uni app demo provided by Huanxin to quickly realize one-on-one chat
- Wireshark packet analysis TCP, FTP
- 面试题篇一
- 一个悄然崛起的国产软件,低调又强大!
- list大集合等比分割成多个小list集合
- IPv4 address, subnet mask, gateway
- A brief understanding of white box encryption technology
- Why has instagram changed from a content sharing platform to a marketing tool? How do independent sellers use this tool?
- 类加载机制
猜你喜欢

Test self-study people must see: how to find test items in software testing?

JS的Proxy

实例讲解将Graph Explorer搬上JupyterLab

Oracle physical architecture

SQL 入门计划-1-选择

【AI服务器搭建】CUDA环境

The key to the success of digital transformation enterprises is to create value with data
![[Mori city] random talk on GIS data (I)](/img/4d/1ed4bbf397b8d756c91241705528de.jpg)
[Mori city] random talk on GIS data (I)

安装sharp报错

Review the collection container again
随机推荐
Optimization of video streaming with repeated requests in the case of unstable easygbs network
Actual combat of flutter - fast implementation of audio and video call application
【无标题】
Technology T3 domestic platform! Successfully equipped with "Yihui domestic real-time system sylixos"
Ffmpeg common commands (2)
Introduction and installation of crunch, and making password dictionary with crunch
Botu V16 obtains the system time and converts it into a string
torch. nn. functional. Interpolate function
JS ternary expression complex condition judgment
解决VSCode下载慢或下载失败的问题
Image acquisition and playback of coaxpress high speed camera based on pxie interface
A brief understanding of white box encryption technology
有意思了!数据库也搞Serverless!
JS的Proxy
DDR4 test-2
Basic knowledge of audio coding and decoding
What is the essential difference between Bi development and report development?
list分割成满足和不满足条件的集合(partitioningBy)
MySQL reports an error can't create table 'demo01 tb_ Student‘ (errno: 150)*
全国职业院校技能大赛网络安全“splunk“详细配置