Comments (16)
The thing is, even if the folder is somehow incorrect, it should be able to deduce the version number from the folder name, so I'm quite confused as to what is happening here. Unfortunately I can't reproduce it, so not sure how to debug.
Are you running this on Linux, or some Windows setup?
Have you tried setting your PATH
to point to the folder that v++
is in instead of setting VITIS_ROOT
, i.e.:
PATH=/vitis/install/Vitis/2020.2/bin cmake ..
Did you try setting XILINX_XRT
to point to the installation of XRT, like the error suggests? (This is different from your Vitis installation!)
from hlslib.
Hi Kerstin -- I'm running Vitis 2020.2 myself, so it's expected to work. As far as I can see, you are invoking CMake correctly, assuming the VITIS_ROOT
path is what hlslib expects.
I can't help but notice that you are passing what looks like a Windows path -- are you running this on Windows? I've never tested hlslib on Windows, and I wouldn't be surprised if there are some issues there.
As a sanity check, could you also verify that path\to\xilinx\Vitis\2020.2\bin\v++
exists?
Regarding Intel: This depends on how you are including hlslib. If you include is as a subdirectory (with CMake's add_subdirectory
), then it will always look for Intel, but not fail if it's not found, so you can safely ignore this. You can also call find_package(Vitis)
from your own CMakeLists.txt
instead of relying on hlslib doing it.
from hlslib.
I have similar problem as well, I'm running Vitis 2020.2.
Here is my log:
cothan@vitis:~/work/hlslib/build$ cmake .. -DVITIS_ROOT=/vitis/install/Vitis/2020.2/
-- Using user defined Vitis directory: /vitis/install/Vitis/2020.2/
CMake Warning at cmake/FindVitis.cmake:106 (message):
vitis_hls used from Vitis 2020.1 and onwards introduces breaking changes to
hls::stream. Please pass -D__VITIS_HLS__ or -D__VIVADO_HLS__ in your
synthesis script depending on which tool you are using to always use a
working version.
Call Stack (most recent call first):
CMakeLists.txt:17 (find_package)
CMake Error at cmake/FindVitis.cmake:198 (message):
The Xilinx Runtime (XRT) was not found. You can specify the XRT directory
with the XRT_ROOT_DIR variable.
Call Stack (most recent call first):
CMakeLists.txt:17 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/cothan/work/hlslib/build/CMakeFiles/CMakeOutput.log".
See also "/home/cothan/work/hlslib/build/CMakeFiles/CMakeError.log".
cothan@vitis:~/work/hlslib/build$
Any idea?
Great project, btw.
from hlslib.
Hi @cothan, this looks like a different issue. Did you try explicitly passing the path to an XRT installation as suggested in the error message? You can also set the environment variable XILINX_XRT
to point to your XRT installation.
You also shouldn't be getting that warning when using Vitis 2020.2. Could you do me a favor and check what Vitis_VERSION
, Vitis_MAJOR_VERSION
and Vitis_MINOR_VERSION
are set to after running your CMake script? You can print them by adding this after line 87 in FindVitis.cmake
:
message(STATUS "Version: ${Vitis_VERSION}, major: ${Vitis_MAJOR_VERSION}, minor ${Vitis_MINOR_VERSION}")
from hlslib.
Hi @definelicht ,
It's seem like the script is not able to find the Vitis version..
As shown in the picture, I set two directory paths, and cd
to the real path to make sure it's exists.
from hlslib.
wait, could it be the different from Vitis installation package ?
I have Vivado (HW developer), does it require Vitis (SW developer) to be installed as well ?
Please let me know.
from hlslib.
C:\Users\madhu\Downloads\gemm_hls-master\gemm_hls-master\build>cmake ../ -DMM_DATA_TYPE=float -DMM_PARALLELISM_N=32 -DMM_PARALLELISM_M=8 -DMM_MEMORY_TILE_SIZE_N=512 -DMM_MEMORY_TILE_SIZE_M=512
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19043.
CMake Error at CMakeLists.txt:72 (find_package):
Syntax error in cmake code at
C:/Users/madhu/Downloads/gemm_hls-master/gemm_hls-master/CMakeLists.txt:72
when parsing string
C:\Xilinx\Vitis_HLS\2020.2
Invalid escape sequence \X
-- Configuring incomplete, errors occurred!
See also "C:/Users/madhu/Downloads/gemm_hls-master/gemm_hls-master/build/CMakeFiles/CMakeOutput.log".
from hlslib.
any please help me , i am new to make and Vivado.
from hlslib.
C:\Users\madhu\Downloads\gemm_hls-master\gemm_hls-master\build>cmake ../ -DMM_DATA_TYPE=float -DMM_PARALLELISM_N=32 -DMM_PARALLELISM_M=8 -DMM_MEMORY_TILE_SIZE_N=512 -DMM_MEMORY_TILE_SIZE_M=512 -- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19043. CMake Error at CMakeLists.txt:72 (find_package): Syntax error in cmake code at
C:/Users/madhu/Downloads/gemm_hls-master/gemm_hls-master/CMakeLists.txt:72
when parsing string
C:\Xilinx\Vitis_HLS\2020.2
Invalid escape sequence \X
-- Configuring incomplete, errors occurred! See also "C:/Users/madhu/Downloads/gemm_hls-master/gemm_hls-master/build/CMakeFiles/CMakeOutput.log".
i am using this in windows 10 with vivado 2020.2
from hlslib.
@madhureddyr I think the issue is backslashes in Windows file paths: https://stackoverflow.com/questions/13737370/cmake-error-invalid-escape-sequence-u/28565713
Can you see where in FindVitis.cmake
this error is occurring?
from hlslib.
I changed the path from backslashes to forward slashes,I am still getting the log as:
C:\Users\madhu\Downloads\gemm_hls-master\gemm_hls-master\build>cmake ../ -DMM_DATA_TYPE=float -DMM_PARALLELISM_N=32 -DMM_PARALLELISM_M=8 -DMM_MEMORY_TILE_SIZE_N=512 -DMM_MEMORY_TILE_SIZE_M=512
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19043.
CMake Warning at CMakeLists.txt:72 (find_package):
By not providing "FindC:/Xilinx/Vitis_HLS/2020.2/bin.cmake" in
CMAKE_MODULE_PATH this project has asked CMake to find a package
configuration file provided by "C:/Xilinx/Vitis_HLS/2020.2/bin", but CMake
did not find one.
Could not find a package configuration file provided by
"C:/Xilinx/Vitis_HLS/2020.2/bin" with any of the following names:
C:/Xilinx/Vitis_HLS/2020.2/binConfig.cmake
c:/xilinx/vitis_hls/2020.2/bin-config.cmake
Add the installation prefix of "C:/Xilinx/Vitis_HLS/2020.2/bin" to
CMAKE_PREFIX_PATH or set "C:/Xilinx/Vitis_HLS/2020.2/bin_DIR" to a
directory containing one of the above files. If
"C:/Xilinx/Vitis_HLS/2020.2/bin" provides a separate development package or
SDK, be sure it has been installed.
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- A library with BLAS API not found. Please specify library location.
CMake Error at CMakeLists.txt:105 (if):
if given arguments:
"(" "(" "LESS" "2018" ")" "AND" "(" "LESS" "3" ")" ")" "OR" "LESS" "2017"
Unknown arguments specified
-- Configuring incomplete, errors occurred!
See also "C:/Users/madhu/Downloads/gemm_hls-master/gemm_hls-master/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/madhu/Downloads/gemm_hls-master/gemm_hls-master/build/CMakeFiles/CMakeError.log".
from hlslib.
@definelicht
please help with the issue.
Many thanks for considering my request.
Shall we connect via any medium to clear my problem...
from hlslib.
Did you make changes to the CMake files in hlslib? The error message you got looks like you are changing the find_package
macro.
from hlslib.
there are no files in hslib folder.
from hlslib.
Did you make changes to the CMake files in hlslib? The error message you got looks like you are changing the
find_package
macro.
no, I did make changes in hslib folder.
from hlslib.
Could you please open a new issue, and post the exact steps that you are doing to reproduce? Include the exact commands you are running to clone, configure, and compile.
Make sure to clone gemm_hls
with --recursive
.
from hlslib.
Related Issues (20)
- cosim_design with Vivado_hls 2019.2 HOT 5
- Dataflow and Template Functions HOT 2
- Another Project Which Uses HLSLIB HOT 3
- Feature Request: support event wait list when enqueueing a Kernel or Buffer Read/Write HOT 1
- Warnings when building with 2020.2 HOT 1
- Support for aarch64/arm64? HOT 6
- Tight packing for DataPack on hardware HOT 2
- hlslib::ConstLog2 off by 1? HOT 3
- c++0x_warning.h HOT 10
- function WriteOptimistic in Stream.h has a void return type HOT 3
- `hlslib::Stream` on the interface HOT 2
- `hlslib::Stream` with `ap_axiu` HOT 2
- No platform found in path HOT 8
- Run hlslib on U50 HOT 1
- `hlslib::Stream::write` works like `hls::stream::write` HOT 4
- Vitis 2021.1 failed to parse XPFM file of U250 HOT 3
- Any plans to support Vitis 2022.1 and 2022.2? HOT 3
- Does this library support running on U200 platform? HOT 1
- Does this repository have documentation and simple example programs? HOT 1
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 hlslib.