Comments (8)
Hello @wilfredkisku ,
This seems to be a known issues in older tool versions. Please try the solution mentioned in the below link to overcome the issue:
https://support.xilinx.com/s/article/Use-of-gmp-h-for-Co-simulation?language=en_US
from vitis_libraries.
@vt-lib-support Thank you for the reply. I forgot to mention that I am using OpenCV 3.3.1.
Also, I tried including the library header as you mentioned (in the testbench cpp file) but I am still getting the error related to gmp
.
from vitis_libraries.
What OS are you running?
Please try adding it here:
https://github.com/Xilinx/Vitis_Libraries/blob/2020.2/vision/L1/include/common/xf_headers.hpp#L27
#include <gmp.h>
#define __gmp_const const
from vitis_libraries.
I tried it both on Ubuntu 18.04 LTS and 20.04 LTS.
Is there an issue with the OpenCV version according to you? I also might be making a mistake in defining the include
, lib
and flags
paths in the settings.
from vitis_libraries.
OpenCV version shouldn't cause this error. From the log you posted, the paths and flags look fine.
You may try adding the below lines:
#include <gmp.h>
#define __gmp_const const
at this line : https://github.com/Xilinx/Vitis_Libraries/blob/2020.2/vision/L1/include/common/xf_headers.hpp#L27 to see if it fixes the error.
Are you getting this error in CSIM too?
from vitis_libraries.
Yes, I am able to run synthesis without any errors (just warning messages). The above-mentioned issues come only after I try to run CSIM (co-simulation).
I will try the above-mentioned fix by adding it to the xf_header.hpp
and post the progress. Thank you once again.
from vitis_libraries.
@vt-lib-support Thank you for the help. It works now, I am able to carry out both synthesis and csim.
While exporting the Vivado IP, I get this error though.
****** Vivado v2020.2 (64-bit)
**** SW Build 3064766 on Wed Nov 18 09:12:47 MST 2020
**** IP Build 3064653 on Wed Nov 18 14:17:31 MST 2020
** Copyright 1986-2020 Xilinx, Inc. All Rights Reserved.
source run_ippack.tcl -notrace
ipx::create_core: Time (s): cpu = 00:00:03 ; elapsed = 00:00:07 . Memory (MB): peak = 2285.727 ; gain = 4.027 ; free physical = 448 ; free virtual = 5091
bad lexical cast: source type value could not be interpreted as target
while executing
"rdi::set_property core_revision 2310121424 {component component_1}"
invoked from within
"set_property core_revision $Revision $core"
(file "run_ippack.tcl" line 1766)
INFO: [Common 17-206] Exiting Vivado at Thu Oct 12 14:25:11 2023...
ERROR: [IMPL 213-28] Failed to generate IP.
INFO: [HLS 200-111] Finished Command export_design CPU user time: 18.59 seconds. CPU system time: 1.91 seconds. Elapsed time: 39.33 seconds; current allocated memory: 252.623 MB.
command 'ap_source' returned error code
while executing
"source /home/wilfred/vivado_workspace/sobelExample/solution1/export.tcl"
invoked from within
"hls::main /home/wilfred/vivado_workspace/sobelExample/solution1/export.tcl"
("uplevel" body line 1)
invoked from within
"uplevel 1 hls::main {*}$newargs"
(procedure "hls_proc" line 16)
invoked from within
"hls_proc [info nameofexecutable] $argv"
Finished export RTL.
The setting for the export is shown:
Thank you.
from vitis_libraries.
This seems to be an issue caused by y2k22 bug in Vitis/Vivado older versions. Please follow the steps mentioned here and see if it gets resolved:
https://support.xilinx.com/s/article/76960?language=en_US
from vitis_libraries.
Related Issues (20)
- run fft error HOT 1
- OpenSSL calls issue
- II&Timing violations in tests of solver library
- failed to run csim of vision library 2020.2 with vitis_hls2020.2 on windows HOT 2
- bad_alloc HOT 1
- Link to documentation not up to date
- [Vitis Vision] xfcvDataMover Tiler/Stitcher Hangs on Wait HOT 1
- [Vitis Vision] xfcvDataMover Tiler/Stitcher AIE_VECTORIZATION_FACTOR? HOT 2
- [Vitis Vision Library] Kalman Filter Kernel documentation is misleading and incomplete
- Data compression kernel with data width > 8 bits?
- [Vitis Graph] test_cosineSimilaritySSDense Bug: Segmentation fault (core dumped)
- Security lib performance: RSA + HMAC-SHA256
- CFB76::calculatePaddedNumElements HOT 1
- Build errors during C simulation and C synthesis in Vitis unified IDE 2023.2
- Motor control [field weakening]
- NPPC2 (2 pixels per clock) or NPPC4 (4 pixels per clock) support for Sobel Filter
- BLAS multikernel benchmark example doesn't work on U250 platform HOT 1
- [2023.2] CONFIG_FILE and CONFIG_TMPL variables in makefile of examples HOT 1
- [VISION]REQUEST SAMPLE FOR LK_SPARSE_PYR_OP
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vitis_libraries.