Closed lloo099 closed 3 years ago
Hi @lloo099 ,
Can you please metion the branch you have cloned. Kindly also mention the VITIS and XRT you have sourced and the steps to reproduce.
Hi @lloo099 ,
Can you please metion the branch you have cloned. Kindly also mention the VITIS and XRT you have sourced and the steps to reproduce.
Sure @virata-xilinx , I did it follows these steps:
git clone https://github.com/Xilinx/Vitis_Accel_Examples.git
export VIVADO_PATH=/tools/Xilinx/Vivado/2020.1
source /tools/Xilinx/Vitis/2020.1/settings64.sh
source /opt/xilinx/xrt/setup.sh
make all TARGET=sw_emu PLATFORM=xilinx_u200_xdma_201830_2 HOST_ARCH=x86
@lloo099 , So you cloned the master branch and are sourcing 2020.1? For master you should be sourcing 2021.2. If you wish to source 2020.1, kindly clone the 2020.1 branch.
@lloo099 , So you cloned the master branch and are sourcing 2020.1? For master you should be sourcing 2021.2. If you wish to source 2020.1, kindly clone the 2020.1 branch.
Yes, wow. How to clone 2020.1 branch? Could you give me a link? thanks
Kindly use the following link with the "git clone" command to clone the 2020.1 branch - https://github.com/Xilinx/Vitis_Accel_Examples/tree/2020.1
Kindly use the following link with the "git clone" command to clone the 2020.1 branch - https://github.com/Xilinx/Vitis_Accel_Examples/tree/2020.1 same problem on 2020.1
g++ -o hello_world /home/enai/Desktop/project/enai0/Vitis_Accel_Examples-2020.1/common/includes/xcl2/xcl2.cpp src/host.cpp -I/opt/xilinx/xrt/include -I/tools/Xilinx/Vivado/2020.1/include -Wall -O0 -g -std=c++11 -I/home/enai/Desktop/project/enai0/Vitis_Accel_Examples-2020.1/common/includes/xcl2 -fmessage-length=0 -L/opt/xilinx/xrt/lib -lOpenCL -lpthread -lrt -lstdc++ In file included from /home/enai/Desktop/project/enai0/Vitis_Accel_Examples-2020.1/common/includes/xcl2/xcl2.cpp:17:0: /home/enai/Desktop/project/enai0/Vitis_Accel_Examples-2020.1/common/includes/xcl2/xcl2.hpp:34:10: fatal error: CL/cl2.hpp: No such file or directory #include <CL/cl2.hpp> ^~~~~~~~~~~~ compilation terminated. In file included from src/host.cpp:17:0: /home/enai/Desktop/project/enai0/Vitis_Accel_Examples-2020.1/common/includes/xcl2/xcl2.hpp:34:10: fatal error: CL/cl2.hpp: No such file or directory #include <CL/cl2.hpp> ^~~~~~~~~~~~ compilation terminated.
@virata-xilinx
It is not clear what is the system you are using.
On my Debian system the /usr/include/CL/cl2.hpp
header comes from the opencl-clhpp-headers
package.
If you are using such a system, you could try an apt install opencl-clhpp-headers
.
It is not clear what is the system you are using. On my Debian system the
/usr/include/CL/cl2.hpp
header comes from theopencl-clhpp-headers
package. If you are using such a system, you could try anapt install opencl-clhpp-headers
.
Thanks, this problem is solved.