gemm_hls icon indicating copy to clipboard operation
gemm_hls copied to clipboard

Could NOT find Vitis (missing: Vitis_FLOATING_POINT_LIBRARY)

Open frideric opened this issue 1 year ago • 6 comments

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

frideric avatar Nov 28 '24 07:11 frideric

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

definelicht avatar Nov 29 '24 06:11 definelicht

Hi, I have installed the latest 2024.2 version.

frideric avatar Dec 02 '24 07:12 frideric

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 avatar Dec 04 '24 10:12 frideric

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 avatar Dec 04 '24 10:12 definelicht

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)

huing4257 avatar Jan 07 '25 11:01 huing4257

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.

definelicht avatar Jan 20 '25 20:01 definelicht