Giter VIP home page Giter VIP logo

Comments (16)

definelicht avatar definelicht commented on September 26, 2024 1

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.

definelicht avatar definelicht commented on September 26, 2024

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.

cothan avatar cothan commented on September 26, 2024

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.

definelicht avatar definelicht commented on September 26, 2024

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.

cothan avatar cothan commented on September 26, 2024

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.

image

from hlslib.

cothan avatar cothan commented on September 26, 2024

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.

madhureddyr avatar madhureddyr commented on September 26, 2024

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.

madhureddyr avatar madhureddyr commented on September 26, 2024

any please help me , i am new to make and Vivado.

from hlslib.

madhureddyr avatar madhureddyr commented on September 26, 2024

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.

definelicht avatar definelicht commented on September 26, 2024

@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.

madhureddyr avatar madhureddyr commented on September 26, 2024

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.

madhureddyr avatar madhureddyr commented on September 26, 2024

@definelicht
please help with the issue.
Many thanks for considering my request.
Shall we connect via any medium to clear my problem...

from hlslib.

definelicht avatar definelicht commented on September 26, 2024

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.

madhureddyr avatar madhureddyr commented on September 26, 2024

there are no files in hslib folder.

from hlslib.

madhureddyr avatar madhureddyr commented on September 26, 2024

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.

definelicht avatar definelicht commented on September 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.