Could NOT find Vitis (missing: Vitis_FLOATING_POINT_LIBRARY)
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?
Hi there :-) which version of Vitis do you have installed?
Hi, I have installed the latest 2024.2 version.
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.
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.
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.
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)
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.
