Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could NOT find Vitis (missing: Vitis_FLOATING_POINT_LIBRARY) #34

Open
frideric opened this issue Nov 28, 2024 · 6 comments
Open

Could NOT find Vitis (missing: Vitis_FLOATING_POINT_LIBRARY) #34

frideric opened this issue Nov 28, 2024 · 6 comments

Comments

@frideric
Copy link

Hi Guys:
I am using this project, and when I run the cmake command,
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
the following error is reported. I am not sure if it is an environment variable problem, or the path is not specified, or Vitis is not installed completely? Can anyone help me?
error

@definelicht
Copy link
Contributor

Hi there :-) which version of Vitis do you have installed?

@frideric
Copy link
Author

frideric commented Dec 2, 2024

Hi, I have installed the latest 2024.2 version.

@frideric
Copy link
Author

frideric commented Dec 4, 2024

I have solved this problem. The reason for the trouble is that there is a part in FindVitis.cmake that specifies the floating point library, which needs to be modified to the corresponding floating point library version according to the specific version of Vitis. For example, I changed it from v7_0 to v7_1.
image

@frideric frideric closed this as completed Dec 4, 2024
@definelicht
Copy link
Contributor

I have solved this problem. The reason for the trouble is that there is a part in FindVitis.cmake that specifies the floating point library, which needs to be modified to the corresponding floating point library version according to the specific version of Vitis. For example, I changed it from v7_0 to v7_1. image

Then you will not be the only one with this issue, could you please open a pull request with the fix? 🙂 The new version should be in addition to the old one, so it works with either.

@definelicht definelicht reopened this Dec 4, 2024
@huing4257
Copy link

Thank you for solving this! I think this issue is in the hlslib repo. @definelicht
I made it work after making changes like this:

-  find_library(Vitis_FLOATING_POINT_LIBRARY Ip_floating_point_v7_0_bitacc_cmodel
+  find_library(Vitis_FLOATING_POINT_LIBRARY Ip_floating_point_v7_1_bitacc_cmodel
                PATHS
-               ${VITIS_ROOT}/lnx64/tools/fpo_v7_0
-               ${VITIS_ROOT}/../../Vitis_HLS/${Vitis_VERSION}/lnx64/tools/fpo_v7_0
-               ${VITIS_ROOT}/../../Vivado/${Vitis_VERSION}/lnx64/tools/fpo_v7_0
-               ${VITIS_ROOT}/Vivado_HLS/lnx64/tools/fpo_v7_0)
+               ${VITIS_ROOT}/lnx64/tools/fpo_v7_1
+               ${VITIS_ROOT}/../../Vitis_HLS/${Vitis_VERSION}/lnx64/tools/fpo_v7_1
+               ${VITIS_ROOT}/../../Vivado/${Vitis_VERSION}/lnx64/tools/fpo_v7_1
+               ${VITIS_ROOT}/Vivado_HLS/lnx64/tools/fpo_v7_1)

@definelicht
Copy link
Contributor

definelicht commented Jan 20, 2025

Guys, could you please check out this branch (called update-hlslib) and see if it fixes the issue (remember git submodule update)? I don't have access to an FPGA machine to test this on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants