spcl / gemm_hls

Scalable systolic array-based matrix-matrix multiplication implemented in Vivado HLS for Xilinx FPGAs.
BSD 3-Clause "New" or "Revised" License
297 stars 51 forks source link

No platform found in path #23

Closed charliechou1001 closed 2 years ago

charliechou1001 commented 2 years ago

Hi, When I run the gemm_hls project, the system reported an error:"No platform found in path /home/***/Xilinx/Vitis/2021.1/platforms", how can I solve the problem? Thank you!

Here is the detail:

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

-- Using user defined Xilinx Runtime (XRT) directory "/home/aaa/Xilinx/XRT-master/build/Debug/opt/xilinx/xrt". -- Looking for CL_VERSION_2_2 -- Looking for CL_VERSION_2_2 - found -- Found OpenCL: /usr/lib/x86_64-linux-gnu/libOpenCL.so (found version "2.2") -- Found Vitis: /home/***/Xilinx/Vitis/2021.1/bin/v++
-- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthreadcreate in pthread - found -- Found Threads: TRUE
-- Looking for sgemm
-- Looking for sgemm_ - found -- A library with BLAS API found. -- Querying default clock for xilinx_u250_gen3x16_xdma_3_1_202020_1. No platform found in path /home/aaa/Xilinx/Vitis/2021.1/platforms CMake Error at CMakeLists.txt:124 (string): string begin index: -1 is out of range 0 - 0

-- Querying Vitis platform for MatrixMultiplication. No platform found in path /home/aaa/Xilinx/Vitis/2021.1/platforms CMake Warning at hlslib/cmake/FindVitis.cmake:438 (message): Xilinx platform xilinx_u250_gen3x16_xdma_3_1_202020_1 was not found. Please consult "/home/aaa/Xilinx/Vitis/2021.1/bin/platforminfo -l" for a list of installed platforms. Call Stack (most recent call first): CMakeLists.txt:198 (add_vitis_program)

definelicht commented 2 years ago

Discussed in the hlslib issue.