spcl/hls_tutorial_examples

Implementations on Other xilinx boards

Closed this issue · 8 comments

Hi, may I know if u support other xilinx boards? such as U200. As I want to deploy hls code on my U200, the platform error has happened. Here are my codes:

cmake .. -DINTEL_FPGA_BOARD=xilinx_u200_xdma_201830_2 -DVITIS_ROOT=/tools/Xilinx/Vitis/2020.1

-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Using user defined Vitis directory: /tools/Xilinx/Vitis/2020.1
-- Found Xilinx Runtime (XRT): /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: /tools/Xilinx/Vitis/2020.1/bin/v++  
-- Could NOT find IntelFPGAOpenCL (missing: IntelFPGAOpenCL_AOCL IntelFPGAOpenCL_AOC IntelFPGAOpenCL_INCLUDE_DIRS IntelFPGAOpenCL_LIBRARIES IntelFPGAOpenCL_RPATH IntelFPGAOpenCL_VERSION IntelFPGAOpenCL_MAJOR_VERSION IntelFPGAOpenCL_MINOR_VERSION) 
-- Querying Vitis platform for example0.
No platform found in path /opt/xilinx/platforms:/tools/Xilinx/Vitis/2020.1/platforms
CMake Warning at hlslib/cmake/FindVitis.cmake:439 (message):
  Xilinx platform xilinx_u250_gen3x16_xdma_3_1_202020_1 was not found.
  Please consult "/tools/Xilinx/Vitis/2020.1/bin/platforminfo -l" for a list
  of installed platforms.
Call Stack (most recent call first):
  CMakeLists.txt:34 (add_vitis_program)
  example_0/CMakeLists.txt:1 (xilinx_synthesis_target)


CMake Error at CMakeLists.txt:40 (add_custom_command):
  No TARGET 'synthesize_example0' has been created in this directory.
Call Stack (most recent call first):
  example_0/CMakeLists.txt:1 (xilinx_synthesis_target)


-- Querying Vitis platform for example1.
No platform found in path /opt/xilinx/platforms:/tools/Xilinx/Vitis/2020.1/platforms
CMake Warning at hlslib/cmake/FindVitis.cmake:439 (message):
  Xilinx platform xilinx_u250_gen3x16_xdma_3_1_202020_1 was not found.
  Please consult "/tools/Xilinx/Vitis/2020.1/bin/platforminfo -l" for a list
  of installed platforms.
Call Stack (most recent call first):
  CMakeLists.txt:34 (add_vitis_program)
  example_1/CMakeLists.txt:1 (xilinx_synthesis_target)


CMake Error at CMakeLists.txt:40 (add_custom_command):
  No TARGET 'synthesize_example1' has been created in this directory.
Call Stack (most recent call first):
  example_1/CMakeLists.txt:1 (xilinx_synthesis_target)


-- Querying Vitis platform for example1_pipelined.
No platform found in path /opt/xilinx/platforms:/tools/Xilinx/Vitis/2020.1/platforms
CMake Warning at hlslib/cmake/FindVitis.cmake:439 (message):
  Xilinx platform xilinx_u250_gen3x16_xdma_3_1_202020_1 was not found.
  Please consult "/tools/Xilinx/Vitis/2020.1/bin/platforminfo -l" for a list
  of installed platforms.
Call Stack (most recent call first):
  CMakeLists.txt:34 (add_vitis_program)
  example_1/CMakeLists.txt:2 (xilinx_synthesis_target)


CMake Error at CMakeLists.txt:40 (add_custom_command):
  No TARGET 'synthesize_example1_pipelined' has been created in this
  directory.
Call Stack (most recent call first):
  example_1/CMakeLists.txt:2 (xilinx_synthesis_target)


-- Querying Vitis platform for example2.
No platform found in path /opt/xilinx/platforms:/tools/Xilinx/Vitis/2020.1/platforms
CMake Warning at hlslib/cmake/FindVitis.cmake:439 (message):
  Xilinx platform xilinx_u250_gen3x16_xdma_3_1_202020_1 was not found.
  Please consult "/tools/Xilinx/Vitis/2020.1/bin/platforminfo -l" for a list
  of installed platforms.
Call Stack (most recent call first):
  CMakeLists.txt:34 (add_vitis_program)
  example_2/CMakeLists.txt:1 (xilinx_synthesis_target)


CMake Error at CMakeLists.txt:40 (add_custom_command):
  No TARGET 'synthesize_example2' has been created in this directory.
Call Stack (most recent call first):
  example_2/CMakeLists.txt:1 (xilinx_synthesis_target)


-- Querying Vitis platform for example2_buffered.
No platform found in path /opt/xilinx/platforms:/tools/Xilinx/Vitis/2020.1/platforms
CMake Warning at hlslib/cmake/FindVitis.cmake:439 (message):
  Xilinx platform xilinx_u250_gen3x16_xdma_3_1_202020_1 was not found.
  Please consult "/tools/Xilinx/Vitis/2020.1/bin/platforminfo -l" for a list
  of installed platforms.
Call Stack (most recent call first):
  CMakeLists.txt:34 (add_vitis_program)
  example_2/CMakeLists.txt:2 (xilinx_synthesis_target)


CMake Error at CMakeLists.txt:40 (add_custom_command):
  No TARGET 'synthesize_example2_buffered' has been created in this
  directory.
Call Stack (most recent call first):
  example_2/CMakeLists.txt:2 (xilinx_synthesis_target)


-- Querying Vitis platform for example3.
No platform found in path /opt/xilinx/platforms:/tools/Xilinx/Vitis/2020.1/platforms
CMake Warning at hlslib/cmake/FindVitis.cmake:439 (message):
  Xilinx platform xilinx_u250_gen3x16_xdma_3_1_202020_1 was not found.
  Please consult "/tools/Xilinx/Vitis/2020.1/bin/platforminfo -l" for a list
  of installed platforms.
Call Stack (most recent call first):
  CMakeLists.txt:34 (add_vitis_program)
  example_3/CMakeLists.txt:1 (xilinx_synthesis_target)


CMake Error at CMakeLists.txt:40 (add_custom_command):
  No TARGET 'synthesize_example3' has been created in this directory.
Call Stack (most recent call first):
  example_3/CMakeLists.txt:1 (xilinx_synthesis_target)


-- Querying Vitis platform for example3_time.
No platform found in path /opt/xilinx/platforms:/tools/Xilinx/Vitis/2020.1/platforms
CMake Warning at hlslib/cmake/FindVitis.cmake:439 (message):
  Xilinx platform xilinx_u250_gen3x16_xdma_3_1_202020_1 was not found.
  Please consult "/tools/Xilinx/Vitis/2020.1/bin/platforminfo -l" for a list
  of installed platforms.
Call Stack (most recent call first):
  CMakeLists.txt:34 (add_vitis_program)
  example_3/CMakeLists.txt:2 (xilinx_synthesis_target)


CMake Error at CMakeLists.txt:40 (add_custom_command):
  No TARGET 'synthesize_example3_time' has been created in this directory.
Call Stack (most recent call first):
  example_3/CMakeLists.txt:2 (xilinx_synthesis_target)


-- Querying Vitis platform for example4.
No platform found in path /opt/xilinx/platforms:/tools/Xilinx/Vitis/2020.1/platforms
CMake Warning at hlslib/cmake/FindVitis.cmake:439 (message):
  Xilinx platform xilinx_u250_gen3x16_xdma_3_1_202020_1 was not found.
  Please consult "/tools/Xilinx/Vitis/2020.1/bin/platforminfo -l" for a list
  of installed platforms.
Call Stack (most recent call first):
  CMakeLists.txt:34 (add_vitis_program)
  example_4/CMakeLists.txt:1 (xilinx_synthesis_target)


CMake Error at CMakeLists.txt:40 (add_custom_command):
  No TARGET 'synthesize_example4' has been created in this directory.
Call Stack (most recent call first):
  example_4/CMakeLists.txt:1 (xilinx_synthesis_target)


-- Querying Vitis platform for example5.
No platform found in path /opt/xilinx/platforms:/tools/Xilinx/Vitis/2020.1/platforms
CMake Warning at hlslib/cmake/FindVitis.cmake:439 (message):
  Xilinx platform xilinx_u250_gen3x16_xdma_3_1_202020_1 was not found.
  Please consult "/tools/Xilinx/Vitis/2020.1/bin/platforminfo -l" for a list
  of installed platforms.
Call Stack (most recent call first):
  CMakeLists.txt:34 (add_vitis_program)
  example_5/CMakeLists.txt:1 (xilinx_synthesis_target)


CMake Error at CMakeLists.txt:40 (add_custom_command):
  No TARGET 'synthesize_example5' has been created in this directory.
Call Stack (most recent call first):
  example_5/CMakeLists.txt:1 (xilinx_synthesis_target)


-- Querying Vitis platform for example5_reordered.
No platform found in path /opt/xilinx/platforms:/tools/Xilinx/Vitis/2020.1/platforms
CMake Warning at hlslib/cmake/FindVitis.cmake:439 (message):
  Xilinx platform xilinx_u250_gen3x16_xdma_3_1_202020_1 was not found.
  Please consult "/tools/Xilinx/Vitis/2020.1/bin/platforminfo -l" for a list
  of installed platforms.
Call Stack (most recent call first):
  CMakeLists.txt:34 (add_vitis_program)
  example_5/CMakeLists.txt:2 (xilinx_synthesis_target)


CMake Error at CMakeLists.txt:40 (add_custom_command):
  No TARGET 'synthesize_example5_reordered' has been created in this
  directory.
Call Stack (most recent call first):
  example_5/CMakeLists.txt:2 (xilinx_synthesis_target)


-- Querying Vitis platform for example6.
No platform found in path /opt/xilinx/platforms:/tools/Xilinx/Vitis/2020.1/platforms
CMake Warning at hlslib/cmake/FindVitis.cmake:439 (message):
  Xilinx platform xilinx_u250_gen3x16_xdma_3_1_202020_1 was not found.
  Please consult "/tools/Xilinx/Vitis/2020.1/bin/platforminfo -l" for a list
  of installed platforms.
Call Stack (most recent call first):
  CMakeLists.txt:34 (add_vitis_program)
  example_6/CMakeLists.txt:1 (xilinx_synthesis_target)


CMake Error at CMakeLists.txt:40 (add_custom_command):
  No TARGET 'synthesize_example6' has been created in this directory.
Call Stack (most recent call first):
  example_6/CMakeLists.txt:1 (xilinx_synthesis_target)


-- Querying Vitis platform for example6_vectorized.
No platform found in path /opt/xilinx/platforms:/tools/Xilinx/Vitis/2020.1/platforms
CMake Warning at hlslib/cmake/FindVitis.cmake:439 (message):
  Xilinx platform xilinx_u250_gen3x16_xdma_3_1_202020_1 was not found.
  Please consult "/tools/Xilinx/Vitis/2020.1/bin/platforminfo -l" for a list
  of installed platforms.
Call Stack (most recent call first):
  CMakeLists.txt:34 (add_vitis_program)
  example_6/CMakeLists.txt:2 (xilinx_synthesis_target)


CMake Error at CMakeLists.txt:40 (add_custom_command):
  No TARGET 'synthesize_example6_vectorized' has been created in this
  directory.
Call Stack (most recent call first):
  example_6/CMakeLists.txt:2 (xilinx_synthesis_target)


-- Querying Vitis platform for example7.
No platform found in path /opt/xilinx/platforms:/tools/Xilinx/Vitis/2020.1/platforms
CMake Warning at hlslib/cmake/FindVitis.cmake:439 (message):
  Xilinx platform xilinx_u250_gen3x16_xdma_3_1_202020_1 was not found.
  Please consult "/tools/Xilinx/Vitis/2020.1/bin/platforminfo -l" for a list
  of installed platforms.
Call Stack (most recent call first):
  CMakeLists.txt:34 (add_vitis_program)
  example_7/CMakeLists.txt:1 (xilinx_synthesis_target)


CMake Error at CMakeLists.txt:40 (add_custom_command):
  No TARGET 'synthesize_example7' has been created in this directory.
Call Stack (most recent call first):
  example_7/CMakeLists.txt:1 (xilinx_synthesis_target)

-- Configuring incomplete, errors occurred!

We do, just set the CMake parameter to the correct board, for example:
cmake .. -DXILINX_PLATFORM=<name of platform>

The error message suggests how you can use platforminfo to retrieve the platforms you have installed.

cmake .. -DXILINX_PLATFORM=

I installed U200 platform in /opt/xilinx/platforms, but cmake mentioned that it cannot find in /tools/Xilinx/Vitis/2020.1/platforms. So how to solve it?

Can you try to run platforminfo -l to see if your XRT detects the platform?

cmake .. -DINTEL_FPGA_BOARD=xilinx_u200_xdma_201830_2 -DVITIS_ROOT=/tools/Xilinx/Vitis/2020.1
Sure, it shows that

{
    "platforms": [
        {
            "baseName": "xilinx_u200_xdma_201830_2",
            "version": "201830.2",
            "type": "sdaccel",
            "dataCenter": "true",
            "embedded": "false",
            "externalHost": "true",
            "serverManaged": "true",
            "platformState": "impl",
            "usesPR": "true",
            "platformFile": "\/opt\/xilinx\/platforms\/xilinx_u200_xdma_201830_2\/xilinx_u200_xdma_201830_2.xpfm"
        },
        {
            "baseName": "xilinx_u200_xdma_201830_2",
            "version": "201830.2",
            "type": "sdaccel",
            "dataCenter": "true",
            "embedded": "false",
            "externalHost": "true",
            "serverManaged": "true",
            "platformState": "impl",
            "usesPR": "true",
            "platformFile": "\/tools\/Xilinx\/Vitis\/2020.1\/platforms\/xilinx_u200_xdma_201830_2\/xilinx_u200_xdma_201830_2.xpfm"
        }
    ]
}

You should use -DXILINX_PLATFORM=xilinx_u200_xdma_201830_2, not -DINTEL_FPGA_BOARD. If this still doesn't work, can you report the error message that you get?

cmake .. -DXILINX_PLATFORM=

Sure, here it is:

(base) enai@enai-System-Product-Name:~/Desktop/project/enai0/hls_tutorial_examples/build$ cmake .. -DXILINX_PLATFORM=xilinx_u200_xdma_201830_2 -DVITIS_ROOT=/tools/Xilinx/Vitis/2020.1
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Using user defined Vitis directory: /tools/Xilinx/Vitis/2020.1
-- Found Xilinx Runtime (XRT): /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: /tools/Xilinx/Vitis/2020.1/bin/v++  
-- Could NOT find IntelFPGAOpenCL (missing: IntelFPGAOpenCL_AOCL IntelFPGAOpenCL_AOC IntelFPGAOpenCL_INCLUDE_DIRS IntelFPGAOpenCL_LIBRARIES IntelFPGAOpenCL_RPATH IntelFPGAOpenCL_VERSION IntelFPGAOpenCL_MAJOR_VERSION IntelFPGAOpenCL_MINOR_VERSION) 
-- Querying Vitis platform for example0.
Platform: <xilinx_u200_xdma_201830_2> found in multiple paths: 
/opt/xilinx/platforms/
/tools/Xilinx/Vitis/2020.1/platforms/
Update your PLATFORM_REPO_PATHS so that platforminfo resolves to a single platform.
CMake Warning at hlslib/cmake/FindVitis.cmake:439 (message):
  Xilinx platform xilinx_u200_xdma_201830_2 was not found.  Please consult
  "/tools/Xilinx/Vitis/2020.1/bin/platforminfo -l" for a list of installed
  platforms.
Call Stack (most recent call first):
  CMakeLists.txt:34 (add_vitis_program)
  example_0/CMakeLists.txt:1 (xilinx_synthesis_target)


CMake Error at CMakeLists.txt:40 (add_custom_command):
  No TARGET 'synthesize_example0' has been created in this directory.
Call Stack (most recent call first):
  example_0/CMakeLists.txt:1 (xilinx_synthesis_target)


-- Querying Vitis platform for example1.
Platform: <xilinx_u200_xdma_201830_2> found in multiple paths: 
/opt/xilinx/platforms/
/tools/Xilinx/Vitis/2020.1/platforms/
Update your PLATFORM_REPO_PATHS so that platforminfo resolves to a single platform.
CMake Warning at hlslib/cmake/FindVitis.cmake:439 (message):
  Xilinx platform xilinx_u200_xdma_201830_2 was not found.  Please consult
  "/tools/Xilinx/Vitis/2020.1/bin/platforminfo -l" for a list of installed
  platforms.
Call Stack (most recent call first):
  CMakeLists.txt:34 (add_vitis_program)
  example_1/CMakeLists.txt:1 (xilinx_synthesis_target)


CMake Error at CMakeLists.txt:40 (add_custom_command):
  No TARGET 'synthesize_example1' has been created in this directory.
Call Stack (most recent call first):
  example_1/CMakeLists.txt:1 (xilinx_synthesis_target)


-- Querying Vitis platform for example1_pipelined.
Platform: <xilinx_u200_xdma_201830_2> found in multiple paths: 
/opt/xilinx/platforms/
/tools/Xilinx/Vitis/2020.1/platforms/
Update your PLATFORM_REPO_PATHS so that platforminfo resolves to a single platform.
CMake Warning at hlslib/cmake/FindVitis.cmake:439 (message):
  Xilinx platform xilinx_u200_xdma_201830_2 was not found.  Please consult
  "/tools/Xilinx/Vitis/2020.1/bin/platforminfo -l" for a list of installed
  platforms.
Call Stack (most recent call first):
  CMakeLists.txt:34 (add_vitis_program)
  example_1/CMakeLists.txt:2 (xilinx_synthesis_target)


CMake Error at CMakeLists.txt:40 (add_custom_command):
  No TARGET 'synthesize_example1_pipelined' has been created in this
  directory.
Call Stack (most recent call first):
  example_1/CMakeLists.txt:2 (xilinx_synthesis_target)


-- Querying Vitis platform for example2.
Platform: <xilinx_u200_xdma_201830_2> found in multiple paths: 
/opt/xilinx/platforms/
/tools/Xilinx/Vitis/2020.1/platforms/
Update your PLATFORM_REPO_PATHS so that platforminfo resolves to a single platform.
CMake Warning at hlslib/cmake/FindVitis.cmake:439 (message):
  Xilinx platform xilinx_u200_xdma_201830_2 was not found.  Please consult
  "/tools/Xilinx/Vitis/2020.1/bin/platforminfo -l" for a list of installed
  platforms.
Call Stack (most recent call first):
  CMakeLists.txt:34 (add_vitis_program)
  example_2/CMakeLists.txt:1 (xilinx_synthesis_target)


CMake Error at CMakeLists.txt:40 (add_custom_command):
  No TARGET 'synthesize_example2' has been created in this directory.
Call Stack (most recent call first):
  example_2/CMakeLists.txt:1 (xilinx_synthesis_target)


-- Querying Vitis platform for example2_buffered.
Platform: <xilinx_u200_xdma_201830_2> found in multiple paths: 
/opt/xilinx/platforms/
/tools/Xilinx/Vitis/2020.1/platforms/
Update your PLATFORM_REPO_PATHS so that platforminfo resolves to a single platform.
CMake Warning at hlslib/cmake/FindVitis.cmake:439 (message):
  Xilinx platform xilinx_u200_xdma_201830_2 was not found.  Please consult
  "/tools/Xilinx/Vitis/2020.1/bin/platforminfo -l" for a list of installed
  platforms.
Call Stack (most recent call first):
  CMakeLists.txt:34 (add_vitis_program)
  example_2/CMakeLists.txt:2 (xilinx_synthesis_target)


CMake Error at CMakeLists.txt:40 (add_custom_command):
  No TARGET 'synthesize_example2_buffered' has been created in this
  directory.
Call Stack (most recent call first):
  example_2/CMakeLists.txt:2 (xilinx_synthesis_target)


-- Querying Vitis platform for example3.
Platform: <xilinx_u200_xdma_201830_2> found in multiple paths: 
/opt/xilinx/platforms/
/tools/Xilinx/Vitis/2020.1/platforms/
Update your PLATFORM_REPO_PATHS so that platforminfo resolves to a single platform.
CMake Warning at hlslib/cmake/FindVitis.cmake:439 (message):
  Xilinx platform xilinx_u200_xdma_201830_2 was not found.  Please consult
  "/tools/Xilinx/Vitis/2020.1/bin/platforminfo -l" for a list of installed
  platforms.
Call Stack (most recent call first):
  CMakeLists.txt:34 (add_vitis_program)
  example_3/CMakeLists.txt:1 (xilinx_synthesis_target)


CMake Error at CMakeLists.txt:40 (add_custom_command):
  No TARGET 'synthesize_example3' has been created in this directory.
Call Stack (most recent call first):
  example_3/CMakeLists.txt:1 (xilinx_synthesis_target)


-- Querying Vitis platform for example3_time.
Platform: <xilinx_u200_xdma_201830_2> found in multiple paths: 
/opt/xilinx/platforms/
/tools/Xilinx/Vitis/2020.1/platforms/
Update your PLATFORM_REPO_PATHS so that platforminfo resolves to a single platform.
CMake Warning at hlslib/cmake/FindVitis.cmake:439 (message):
  Xilinx platform xilinx_u200_xdma_201830_2 was not found.  Please consult
  "/tools/Xilinx/Vitis/2020.1/bin/platforminfo -l" for a list of installed
  platforms.
Call Stack (most recent call first):
  CMakeLists.txt:34 (add_vitis_program)
  example_3/CMakeLists.txt:2 (xilinx_synthesis_target)


CMake Error at CMakeLists.txt:40 (add_custom_command):
  No TARGET 'synthesize_example3_time' has been created in this directory.
Call Stack (most recent call first):
  example_3/CMakeLists.txt:2 (xilinx_synthesis_target)


-- Querying Vitis platform for example4.
Platform: <xilinx_u200_xdma_201830_2> found in multiple paths: 
/opt/xilinx/platforms/
/tools/Xilinx/Vitis/2020.1/platforms/
Update your PLATFORM_REPO_PATHS so that platforminfo resolves to a single platform.
CMake Warning at hlslib/cmake/FindVitis.cmake:439 (message):
  Xilinx platform xilinx_u200_xdma_201830_2 was not found.  Please consult
  "/tools/Xilinx/Vitis/2020.1/bin/platforminfo -l" for a list of installed
  platforms.
Call Stack (most recent call first):
  CMakeLists.txt:34 (add_vitis_program)
  example_4/CMakeLists.txt:1 (xilinx_synthesis_target)


CMake Error at CMakeLists.txt:40 (add_custom_command):
  No TARGET 'synthesize_example4' has been created in this directory.
Call Stack (most recent call first):
  example_4/CMakeLists.txt:1 (xilinx_synthesis_target)


-- Querying Vitis platform for example5.
Platform: <xilinx_u200_xdma_201830_2> found in multiple paths: 
/opt/xilinx/platforms/
/tools/Xilinx/Vitis/2020.1/platforms/
Update your PLATFORM_REPO_PATHS so that platforminfo resolves to a single platform.
CMake Warning at hlslib/cmake/FindVitis.cmake:439 (message):
  Xilinx platform xilinx_u200_xdma_201830_2 was not found.  Please consult
  "/tools/Xilinx/Vitis/2020.1/bin/platforminfo -l" for a list of installed
  platforms.
Call Stack (most recent call first):
  CMakeLists.txt:34 (add_vitis_program)
  example_5/CMakeLists.txt:1 (xilinx_synthesis_target)


CMake Error at CMakeLists.txt:40 (add_custom_command):
  No TARGET 'synthesize_example5' has been created in this directory.
Call Stack (most recent call first):
  example_5/CMakeLists.txt:1 (xilinx_synthesis_target)


-- Querying Vitis platform for example5_reordered.
Platform: <xilinx_u200_xdma_201830_2> found in multiple paths: 
/opt/xilinx/platforms/
/tools/Xilinx/Vitis/2020.1/platforms/
Update your PLATFORM_REPO_PATHS so that platforminfo resolves to a single platform.
CMake Warning at hlslib/cmake/FindVitis.cmake:439 (message):
  Xilinx platform xilinx_u200_xdma_201830_2 was not found.  Please consult
  "/tools/Xilinx/Vitis/2020.1/bin/platforminfo -l" for a list of installed
  platforms.
Call Stack (most recent call first):
  CMakeLists.txt:34 (add_vitis_program)
  example_5/CMakeLists.txt:2 (xilinx_synthesis_target)


CMake Error at CMakeLists.txt:40 (add_custom_command):
  No TARGET 'synthesize_example5_reordered' has been created in this
  directory.
Call Stack (most recent call first):
  example_5/CMakeLists.txt:2 (xilinx_synthesis_target)


-- Querying Vitis platform for example6.
Platform: <xilinx_u200_xdma_201830_2> found in multiple paths: 
/opt/xilinx/platforms/
/tools/Xilinx/Vitis/2020.1/platforms/
Update your PLATFORM_REPO_PATHS so that platforminfo resolves to a single platform.
CMake Warning at hlslib/cmake/FindVitis.cmake:439 (message):
  Xilinx platform xilinx_u200_xdma_201830_2 was not found.  Please consult
  "/tools/Xilinx/Vitis/2020.1/bin/platforminfo -l" for a list of installed
  platforms.
Call Stack (most recent call first):
  CMakeLists.txt:34 (add_vitis_program)
  example_6/CMakeLists.txt:1 (xilinx_synthesis_target)


CMake Error at CMakeLists.txt:40 (add_custom_command):
  No TARGET 'synthesize_example6' has been created in this directory.
Call Stack (most recent call first):
  example_6/CMakeLists.txt:1 (xilinx_synthesis_target)


-- Querying Vitis platform for example6_vectorized.
Platform: <xilinx_u200_xdma_201830_2> found in multiple paths: 
/opt/xilinx/platforms/
/tools/Xilinx/Vitis/2020.1/platforms/
Update your PLATFORM_REPO_PATHS so that platforminfo resolves to a single platform.
CMake Warning at hlslib/cmake/FindVitis.cmake:439 (message):
  Xilinx platform xilinx_u200_xdma_201830_2 was not found.  Please consult
  "/tools/Xilinx/Vitis/2020.1/bin/platforminfo -l" for a list of installed
  platforms.
Call Stack (most recent call first):
  CMakeLists.txt:34 (add_vitis_program)
  example_6/CMakeLists.txt:2 (xilinx_synthesis_target)


CMake Error at CMakeLists.txt:40 (add_custom_command):
  No TARGET 'synthesize_example6_vectorized' has been created in this
  directory.
Call Stack (most recent call first):
  example_6/CMakeLists.txt:2 (xilinx_synthesis_target)


-- Querying Vitis platform for example7.
Platform: <xilinx_u200_xdma_201830_2> found in multiple paths: 
/opt/xilinx/platforms/
/tools/Xilinx/Vitis/2020.1/platforms/
Update your PLATFORM_REPO_PATHS so that platforminfo resolves to a single platform.
CMake Warning at hlslib/cmake/FindVitis.cmake:439 (message):
  Xilinx platform xilinx_u200_xdma_201830_2 was not found.  Please consult
  "/tools/Xilinx/Vitis/2020.1/bin/platforminfo -l" for a list of installed
  platforms.
Call Stack (most recent call first):
  CMakeLists.txt:34 (add_vitis_program)
  example_7/CMakeLists.txt:1 (xilinx_synthesis_target)


CMake Error at CMakeLists.txt:40 (add_custom_command):
  No TARGET 'synthesize_example7' has been created in this directory.
Call Stack (most recent call first):
  example_7/CMakeLists.txt:1 (xilinx_synthesis_target)


-- Configuring incomplete, errors occurred!
See also "/home/enai/Desktop/project/enai0/hls_tutorial_examples/build/CMakeFiles/CMakeOutput.log".
See also "/home/enai/Desktop/project/enai0/hls_tutorial_examples/build/CMakeFiles/CMakeError.log".

The error message says that the platform is found in multiple places. Try removing it from either /opt/xilinx/platforms/ or /tools/Xilinx/Vitis/2020.1/platforms/ and try again :-)

The error message says that the platform is found in multiple places. Try removing it from either /opt/xilinx/platforms/ or /tools/Xilinx/Vitis/2020.1/platforms/ and try again :-)

Thanks a lot. I remove one is ok now