当前位置:网站首页>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 :
边栏推荐
- torch. nn. functional. Interpolate function
- 有意思了!数据库也搞Serverless!
- Ffmpeg error code
- February 15, 2022: sweeping robot. There is a floor sweeping robot in the room (represented by a grid). Each grid in the grid has two possibilities: empty and obstacles. The sweeping robot provides fo
- Image acquisition and playback of coaxpress high speed camera based on pxie interface
- Bao, what if the O & M 100+ server is a headache? Use Xingyun housekeeper!
- Wechat applet realizes keyword highlighting
- HLS4ML进入方法
- ModSim基本使用(Modbus模拟器)
- wireshark报文分析tcp,ftp
猜你喜欢
随机推荐
墨天轮沙龙 | 清华乔嘉林:Apache IoTDB,源于清华,建设开源生态之路
Example explanation: move graph explorer to jupyterlab
事务隔离级别 gap锁 死锁
DTD modeling
Basic use of MySQL
[untitled]
Analysis of GetMessage underlying mechanism
February 15, 2022: sweeping robot. There is a floor sweeping robot in the room (represented by a grid). Each grid in the grid has two possibilities: empty and obstacles. The sweeping robot provides fo
2022/5/23-2022/5/30
Process steps of vibrating wire acquisition module for measuring vibrating wire sensor
Class loading mechanism
ModSim基本使用(Modbus模拟器)
Optaplanner learning notes (I) case cloud balance
Install redis under Linux and configure the environment
Basic knowledge of audio coding and decoding
一文读懂C语言中的结构体
Collect Tiktok video
自定义插入页面标签以及实现类似通讯录的首字母搜索
How to correctly use vertx to operate redis (3.9.4 with source code analysis)
振弦采集模块测量振弦传感器的流程步骤


![[AI server setup] CUDA environment](/img/ca/2acfc42ea3ba24934a89472a8632f6.png)
![[untitled]](/img/6c/df2ebb3e39d1e47b8dd74cfdddbb06.gif)





