VTA simulation example AssertionError Error


#1

I export path following the VTA installation instruction and run " python <tvm root>/vta/tests/python/integration/test_benchmark_topi_conv2d.py" to make a test. However, I received an error as:

Traceback (most recent call last):

  File "lk_git/tvm/vta/tests/python/integration/test_benchmark_gemm.py", line 20, in <module>
    import vta.testing

  File "/home/lukuan/lk_git/tvm/vta/python/vta/testing/__init__.py", line 3, in <module>
    from . util import run

  File "/home/lukuan/lk_git/tvm/vta/python/vta/testing/util.py", line 23, in <module>
    from . import simulator

  File "/home/lukuan/lk_git/tvm/vta/python/vta/testing/simulator.py", line 100, in <module>
    LIBS = _load_sw()

  File "/home/lukuan/lk_git/tvm/vta/python/vta/testing/simulator.py", line 34, in _load_sw
    assert lib_driver

AssertionError

It seems that I dont have the libvta_fsim file.
Can anyone help?
Thanks!


#2

It appears that the simulation library wasn’t built properly. Does your config.cmake have set(USE_VTA_FSIM ON)? And once you built TVM, can you find under build the libvta_fsim.dylib/so file?