当前位置:网站首页>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.h
Import 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 :
边栏推荐
- Gaussdb (for MySQL):partial result cache, which accelerates the operator by caching intermediate results
- PowerDesigner design name and comment replacement
- Uni app wechat applet one click login to obtain permission function
- 通过js实现金字塔(星号金字塔,回文对称数字金字塔)
- 博途V16 获取系统时间转换成字符串
- 新窗口打开页面-window.open
- Uni app product classification
- Regular expression =regex=regular expression
- js三元表达式复杂条件判断
- GC garbage collection
猜你喜欢
【多线程】锁策略
How to correctly use vertx to operate redis (3.9.4 with source code analysis)
AAAI2020: Real-time Scene Text Detection with Differentiable Binarization
Technology T3 domestic platform! Successfully equipped with "Yihui domestic real-time system sylixos"
Why must we move from Devops to bizdevops?
Interview questions for audio and video positions in Dachang -- today's headline
JS 之 常用内置类的使用
Interview question 1
[research materials] national second-hand housing market monthly report January 2022 - Download attached
自定义插入页面标签以及实现类似通讯录的首字母搜索
随机推荐
Interview question 16.16 Partial sorting - Double finger needling
事务隔离级别 gap锁 死锁
【AI服务器搭建】CUDA环境
Simplified pinduoduo product data
再回顾集合容器
今日群里分享的面试题
Object creation
大厂音视频职位面试题目--今日头条
Cookie和Session的相关概念
Introduction and installation of crunch, and making password dictionary with crunch
P2433 [deep foundation 1-2] primary school mathematics n in one
H264 encoding profile & level control
Uni app wechat applet one click login to obtain permission function
JDBC中如何添加事务
有意思了!数据库也搞Serverless!
墨天轮沙龙 | 清华乔嘉林:Apache IoTDB,源于清华,建设开源生态之路
Why must we move from Devops to bizdevops?
对金额进行求和
Test self-study people must see: how to find test items in software testing?
Wechat applet realizes keyword highlighting