Compiling the Code and Running the Application - 2023.1 English - XD099

Vitis Tutorials: Hardware Acceleration (XD099)

Document ID
XD099
Release Date
2023-08-02
Version
2023.1 English

Run the following make command to build your XCLBIN and host binary targeting a specific device. Note that this process may take a few hours if the target is hw.

Note: The TARGET environment variable can be set as sw_emu, hw_emu, and hw according to which Vitis target is expected to run. sw_emu is for C level emulations. hw_emu is for RTL level emulations. hw is for a real onboard test. Before you run the case on a real board, it is recommended that you test it on sw_emu and hw_emu.

You can run the application with the default setting:

  $ make help
  $ make run TARGET=hw # option for sw_emu or hw_emu

Or, you can compile the code with the make command:

  $ make xclbin TARGET=hw    # build the binary running on Alveo # option for sw_emu, hw_emu
  $ make host                # build the binary running on the host
  $ make clean               # clean the binary

Run the application with the following arguments:

  $ ./shortpath -xclbin shortpath_hw.xclbin -o csr_data/offset.mtx -c csr_data/indicesweights.mtx -n csr_data/node.mtx

Input Arguments:

 Usage: host.exe -[-xclbin -o -c -n]
         -xclbin:      The kernels name # option for sw.xclbin, hw.xclbin
         -o:           Offset file name
         -c:           Indices_weights file name
         -n:           Nodes information

Note: If you run the sw_emu or hw_emu, set the emu_environment as the follows:

  $ emconfigutil --platform xilinx_u50_gen3x16_xdma_5_202210_1
  $ export XCL_EMULATION_MODE=sw_emu # option for hw_emu