[tsim] tsim Make error

When I run ‘make run_chisel’ under ‘tvm/3rdparty/vta-hw/apps/tsim_example’ before I run tsim_examples, the error occurred as followed:


ERRORMake sure to set TVM_PATH in your environment ERRORMake sure to set VTA_HW_PATH in your environment – Configuring done CMake Error at CMakeLists.txt:46 (add_library): Cannot find source file:

/src/vmem/virtual_memory.cc

Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx

CMake Error at CMakeLists.txt:46 (add_library): No SOURCES given to target: sw


I checked the dir, the file ’ /src/vmem/virtual_memory.cc’ does exist, and the TVM_PATH and VTA_HW_PATH are set properly since I just ran some test like matrix-mult for vta days ago. I would be grateful if anyone can solve the problem!

I solved it by just using set(TVM_PATH ) in the cmake file instead of $ENV(TVM_PATH) which is original. :sweat_smile:

Hi Fei,

could you tell me where to change this: set(TVM_PATH ) ?

Hi Lieber,

I made the changes in the CmakeList.txt file. I changed all TVM_PATH and VTA_HW_PATH from $ENV(xxx) to their absolute path.