-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Description
Hi!
I installed XRT using this .deb:
xrt_202320.2.16.204_20.04-amd64-xrt.deb
After that I have this files in the include folder for CL in XRT:
/opt/xilinx/xrt/include/CL$ ls
cl2xrt.hpp cl_ext.h cl_ext_xilinx.h
When I try to build the project with mode = "hw" I got an error because the code doesn't find:
fatal error: CL/cl2.hpp: No such file or directory
33 | #include <CL/cl2.hpp>
I solved it by mounting not only xrt as a volume, but also the CL folder when starting the container:
-v /tools/Xilinx/:/tools/Xilinx/ \
-v /usr/include/CL:/usr/include/CL \
-v /opt/xilinx/xrt:/opt/xilinx/xrt \
But I reached a point where I cannot edit the makefile to pass the correct CL path to the compiler:
I need line 76 of makefile_zynqmp.mk in top.prj to include the CL folder:
CXXFLAGS += -I$(XILINX_XRT)/include -I$(XILINX_VIVADO)/include -I/usr/include/CL -Wall -O0 -g -std=c++1y
Thanks in advance.
Best regards!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels