cancel
Showing results for 
Search instead for 
Did you mean: 
Participant
Participant
413 Views
Registered: ‎08-19-2015

Missing x_hls_utils.h file when building GEMX

Jump to solution

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

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Participant
Participant
276 Views
Registered: ‎08-19-2015

回复: Missing x_hls_utils.h file when building GEMX

Jump to solution

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

View solution in original post

3 Replies
Highlighted
Xilinx Employee
Xilinx Employee
372 Views
Registered: ‎03-24-2010

回复: Missing x_hls_utils.h file when building GEMX

Jump to solution

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.

Regards,
brucey
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------
0 Kudos
Highlighted
Participant
Participant
320 Views
Registered: ‎08-19-2015

回复: Missing x_hls_utils.h file when building GEMX

Jump to solution

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

0 Kudos
Highlighted
Participant
Participant
277 Views
Registered: ‎08-19-2015

回复: Missing x_hls_utils.h file when building GEMX

Jump to solution

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

View solution in original post