Open wilfredkisku opened 1 year ago
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
@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
.
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
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.
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?
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.
@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.
@wilfredkisku
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:
I have been trying to carry out IP generation for vision-related examples, while I have been able to carry out synthesis there is an issue that I am facing during co-simuation.
I am using Vitis HLS 2020.2 and the examples too related to Vitis Libraries 2020.2 branch.
Any help regarding the same will be very helpful.