[VTA] VTA_LOG_WGT_WIDTH was not declared

When I build the tvm source code,VTA_LOG_WGT_WIDTH was not declared.

I asked them in PR https://github.com/dmlc/tvm/pull/3704

For now we probably need to OFF VTA in cmake config

Strange that CI build passed

@Sword I think like VTA_LOG_UOP_BUFF_SIZE, VTA_LOG_WGT_WIDTH is a variable to be customized, and it’s defined in vta_config.json.

Thank you for your help. Set VTA OFF in cmake config and build passed.

Thank you for your reply. How do I config it?

CMake based build system is designed to read config.cmake file as default options, but you can copy this file into your build directory and revise the ON/OFF settings in the file. At the end of the file, it shows

# Whether to build fast VTA simulator driver
set(USE_VTA_FSIM ON)

# Whether to build cycle-accurate VTA simulator driver
set(USE_VTA_TSIM ON)

# Whether to build VTA FPGA driver (device side only)
set(USE_VTA_FPGA OFF)

, which are the default settings for host to simulate the VTA hardware. To build the system for your FPGA hardware, you can simply set USE_VTA_FPGA ON, and other options are designed for simulation purpose.

For now we probably need to OFF VTA in cmake config

In this case, you might have to disable the simulation modes as well?

Hope this helps.