当前位置:网站首页>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 :
边栏推荐
- P2433 [deep foundation 1-2] primary school mathematics n in one
- Class loading mechanism
- Compile ffmpeg source code with msys+vs2019 under win10
- Interview questions for audio and video positions in Dachang -- today's headline
- The key to the success of digital transformation enterprises is to create value with data
- Bao, what if the O & M 100+ server is a headache? Use Xingyun housekeeper!
- Simplified pinduoduo product data
- 新增订单如何防止重复提交
- How to use console Log print text?
- H264 encoding profile & level control
猜你喜欢

Cookie和Session的相关概念

optaplanner学习笔记(一)案例Cloud balance

Optimization of video streaming with repeated requests in the case of unstable easygbs network

Class loading mechanism

How to correctly use vertx to operate redis (3.9.4 with source code analysis)

面试题篇一

振弦采集模块测量振弦传感器的流程步骤

Why has instagram changed from a content sharing platform to a marketing tool? How do independent sellers use this tool?

Interview questions for audio and video positions in Dachang -- today's headline

Actual combat of flutter - fast implementation of audio and video call application
随机推荐
qobject_cast用法
Ffmpeg audio related commands
What is the essential difference between Bi development and report development?
新窗口打开页面-window.open
DS Transunet:用于医学图像分割的双Swin-Transformer U-Net
Opencv video quality detection -- sharpness detection
Battery simulation of gazebo robot
Bao, what if the O & M 100+ server is a headache? Use Xingyun housekeeper!
Ffmpeg error code
Botu V16 obtains the system time and converts it into a string
Anaconda installs the virtual environment to the specified path
Brpc understanding
振弦采集模塊測量振弦傳感器的流程步驟
音视频、编解码相关电子书、小工具,打包奉送!
通过js实现金字塔(星号金字塔,回文对称数字金字塔)
JVM内存模型
MySQl的基本使用
Mysql查询结果去除换行
H264 encoding profile & level control
Leetcode 1380 lucky numbers in matrix [array] the leetcode path of heroding