当前位置:网站首页>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 :
边栏推荐
- GaussDB(for MySQL) :Partial Result Cache,通过缓存中间结果对算子进行加速
- Redo和Undo的区别
- CMU AI PhD first year summary
- 对象的创建
- Wechat applet navigator has a shadow after clicking. Remove the shadow effect of navigator
- 墨天轮沙龙 | 清华乔嘉林:Apache IoTDB,源于清华,建设开源生态之路
- Interview question 1
- 科技T3国产平台!成功搭载“翼辉国产实时系统SylixOS”
- JS 之 常用内置类的使用
- MySQL signale une erreur can 't create table' demo01. TB Étudiant '(errno: 150)
猜你喜欢
![[Mori city] random talk on GIS data (I)](/img/4d/1ed4bbf397b8d756c91241705528de.jpg)
[Mori city] random talk on GIS data (I)

Is Dao safe? Build finance encountered a malicious governance takeover and was looted!

Why must we move from Devops to bizdevops?

科技T3国产平台!成功搭载“翼辉国产实时系统SylixOS”

JS的Proxy

【AI服务器搭建】CUDA环境

Review the collection container again

Modsim basic use (Modbus simulator)
![[research data] observation on the differences of health preservation concepts among people in 2022 - Download attached](/img/50/926cc5bce83f8b195b3e2072b656bf.jpg)
[research data] observation on the differences of health preservation concepts among people in 2022 - Download attached

The key to the success of digital transformation enterprises is to create value with data
随机推荐
通过js实现金字塔(星号金字塔,回文对称数字金字塔)
qobject_cast用法
The key to the success of digital transformation enterprises is to create value with data
为定时器和延时器等其它情况的回调函数绑定当前作用域的this
[research materials] iResearch tide Watching: seven major trends in the clothing industry - Download attached
Live HLS protocol
一文读懂C语言中的结构体
optaplanner学习笔记(一)案例Cloud balance
Use the uni app demo provided by Huanxin to quickly realize one-on-one chat
Interview questions for audio and video positions in Dachang -- today's headline
Source code series of authentic children -inheritablethreadlocal (line by line source code takes you to analyze the author's ideas)
Test self-study people must see: how to find test items in software testing?
How to use console Log print text?
Proxy in ES6
H264编码profile & level控制
Servlet knowledge points
Graduation season | Huawei experts teach the interview secret: how to get a high paying offer from a large factory?
How to correctly use vertx to operate redis (3.9.4 with source code analysis)
How can a programmer grow rapidly
Object creation