Closed miniskar closed 2 years ago
Hi, I have checked-out vmayoral/Vitis_Libraries. However, I couldn't get the successful build.
With “CXXFLAGS += -D_GLIBCXX_USE_CXX11_ABI=0” in Makefile
$ make run TARGET=sw_emu DEVICE=/opt/xilinx/platforms/xilinx_u250_gen3x16_xdma_3_1_202020_1/xilinx_u250_gen3x16_xdma_3_1_202020_1.xpfm
/usr/bin/ld: /tmp/cc9GUxxI.o: in function `xf::blas::xfblasCreate(char const*, std::string, xf::blas::xfblasEngine_t, unsigned int, unsigned int)':
gemm_test.cpp:(.text+0x175f): undefined reference to `xrt::device::load_xclbin(std::string const&)'
/usr/bin/ld: gemm_test.cpp:(.text+0x1abc): undefined reference to `xrt::kernel::kernel(xrt::device const&, xrt::uuid const&, std::string const&, xrt::kernel::cu_access_mode)'
collect2: error: ld returned 1 exit status
With “CXXFLAGS += -D_GLIBCXX_USE_CXX11_ABI=1” in Makefile
$ make run TARGET=sw_emu DEVICE=/opt/xilinx/platforms/xilinx_u250_gen3x16_xdma_3_1_202020_1/xilinx_u250_gen3x16_xdma_3_1_202020_1.xpfm
INFO: [v++ 60-594] Finished kernel compilation
ERROR: [v++ 17-70] Application Exception: Failed to add kernel 'gemmCPlusXKernel' to XO container because the kernel name '_Z16gemmCPlusXKernelRN3hls6streamI7ap_uintILi512EELi0EEES4_S4_' defined in kernel.xml does not match.
ERROR: [v++ 60-604] Unable to copy output file _x_temp.sw_emu.xilinx_u250_gen3x16_xdma_3_1_202020_1/gemmCPlusXKernel.xo
INFO: [v++ 60-1653] Closing dispatch client.
make: *** [Makefile:183: _x_temp.sw_emu.xilinx_u250_gen3x16_xdma_3_1_202020_1/gemmCPlusXKernel.xo] Error 1
$ make run TARGET=hw DEVICE=/opt/xilinx/platforms/xilinx_u250_gen3x16_xdma_3_1_202020_1/xilinx_u250_gen3x16_xdma_3_1_202020_1.xpfm
===>The following messages were generated while performing high-level synthesis for kernel: gemmTagsKernel Log file: /noback/nqx/FPGA/packages/Vitis_Libraries/blas/L3/tests/gemm/streamingKernel/gemm_float/_x_temp.hw.xilinx_u250_gen3x16_xdma_3_1_202020_1/gemmTagsKernel/gemmTagsKernel/vitis_hls.log :
ERROR: [v++ 207-3673] too many arguments to function call, expected 4, have 5: /noback/nqx/FPGA/packages/Vitis_Libraries/blas/L2/include/streamingKernel/hw/xf_blas/gemmKernel.hpp:244:58
ERROR: [v++ 60-300] Failed to build kernel(ip) gemmTagsKernel, see log for details: /noback/nqx/FPGA/packages/Vitis_Libraries/blas/L3/tests/gemm/streamingKernel/gemm_float/_x_temp.hw.xilinx_u250_gen3x16_xdma_3_1_202020_1/gemmTagsKernel/gemmTagsKernel/vitis_hls.log
ERROR: [v++ 60-773] In '/noback/nqx/FPGA/packages/Vitis_Libraries/blas/L3/tests/gemm/streamingKernel/gemm_float/_x_temp.hw.xilinx_u250_gen3x16_xdma_3_1_202020_1/gemmTagsKernel/gemmTagsKernel/vitis_hls.log', caught Tcl error: ERROR: [HLS 207-3673] too many arguments to function call, expected 4, have 5: /noback/nqx/FPGA/packages/Vitis_Libraries/blas/L2/include/streamingKernel/hw/xf_blas/gemmKernel.hpp:244:58
It seems like it is having multiple issues.
With Regards, Narasinga.
I have tested the fix provided in master branch. Thank you for the fix. It is working good for hw_emu and hw mode. However, it is throwing error in sw_emu mode.
XCL_EMULATION_MODE=sw_emu build_dir.sw_emu.xilinx_u250_gen3x16_xdma_3_1_202020_1/gemm_test.exe build_dir.sw_emu.xilinx_u250_gen3x16_xdma_3_1_202020_1/blas.xclbin build_dir.sw_emu.xilinx_u250_gen3x16_xdma_3_1_202020_1/config_info.d
at terminate called after throwing an instance of 'std::runtime_error'
what(): No ip layout available to construct kernel, make sure xclbin is loaded terminate called recursively
Segmentation fault (core dumped)
@miniskar , this case is released accidentally without testing and will be widthdrawn.
I am getting compilation error for gemm. I have verified the error in master and several release tags also.
Here are the commands to reproduce
Vitis compilation error:
With Regards, Narasinga Rao Oak Ridge National Laboratory