04-26-2019 08:16 AM
Hi,
I am trying to build GEMX (https://github.com/Xilinx/gemx/tree/2018.2) in SDx 2018.3 but there is a missing file: hls/utils/x_hls_utils.h
Is there a way to build this library for SDx 2018.3?
Can I download this header file somewhere?
Thanks,
Vladimir
05-14-2019 08:52 AM
Finally, I have managed to build and run the gemm example.
Some paths in the Makefile had to be fixed to be used with SDAccel 2018.3.
There was also a problem with OpenCL library version, so I had to add this to gemx_fpga.h:
#undef CL_VERSION_2_0
#undef CL_VERSION_2_1
04-27-2019 06:13 AM
I see this file is in /home/brucey/Xilinx/Vivado/2018.3/include/utils/x_hls_utils.h.
Probably you need to set some compilation options accordingly, or set some environment variable accordingly.
05-06-2019 09:02 AM
Hi brucey,
thanks for pointing to the file. I had to replace #include "hls/utils/x_hls_utils.h" with #include "utils/x_hls_utils.h".
All the env variables are set:
XILINX_VIVADO=/apps/tools/FPGA/Xilinx/Vivado/2018.3
XILINX_SDX=/apps/tools/FPGA/Xilinx/SDx/2018.3
PATH+=:/apps/tools/FPGA/Xilinx/Vivado/2018.3/bin
PATH+=:/apps/tools/FPGA/Xilinx/SDx/2018.3/bin
LD_LIBRARY_PATH=/opt/xilinx/xrt//lib:/apps/tools/FPGA/Xilinx/SDx/2018.3/lib/lnx64.o/Default/:/apps/tools/FPGA/Xilinx/SDx/2018.3/lib/lnx64.o/Default/
XILINX_XRT=/opt/xilinx/xrt/
LD_LIBRARY_PATH=/opt/xilinx/xrt//lib:/opt/xilinx/xrt//lib:/apps/tools/FPGA/Xilinx/SDx/2018.3/lib/lnx64.o/Default/:/apps/tools/FPGA/Xilinx/SDx/2018.3/lib/lnx64.o/Default/
Still having problems building the library:
/tmp/ccZ9zsA7.o: In function `boost::compute::command_queue::command_queue(boost::compute::context const&, boost::compute::device const&, unsigned long)':
/home/common/ven_veremin/SDx/gemx-2018.2/gemx/../boost/boost/compute/command_queue.hpp:145: undefined reference to `clCreateCommandQueueWithProperties'
-Vladimir
05-14-2019 08:52 AM
Finally, I have managed to build and run the gemm example.
Some paths in the Makefile had to be fixed to be used with SDAccel 2018.3.
There was also a problem with OpenCL library version, so I had to add this to gemx_fpga.h:
#undef CL_VERSION_2_0
#undef CL_VERSION_2_1