Test_conv2d[vta] Fatal Python error: Segmentation fault

Hello,

I am trying to depoly VTA on ZCU104 board. I have successfully built the bitstream file follow the Bitstream Generation with Xilinx Toolchains guide and programed to ZCU104 by vivado hardware manager. Here is the vta_config.json detail: { “TARGET” : “zcu104”, “HW_VER” : “0.0.2”, “LOG_INP_WIDTH” : 3, “LOG_WGT_WIDTH” : 3, “LOG_ACC_WIDTH” : 5, “LOG_BATCH” : 0, “LOG_BLOCK” : 4, “LOG_UOP_BUFF_SIZE” : 15, “LOG_INP_BUFF_SIZE” : 15, “LOG_WGT_BUFF_SIZE” : 18, “LOG_ACC_BUFF_SIZE” : 17 }

Then I change vta_config TARGET to “ultra96” and follow the Xilinx Pynq FPGA Setup guide start the RPC server.

Next, I try test_program_rpc.py by annotate #program_rpc_bitstream(), cause I have programed from vivado. It passed. Then, I try test_benchmark_topi_conv2d.py, also annotate #program_rpc_bitstream(), then raise a problem shows below:

============================= test session starts ============================== collecting … collected 2 items

test_benchmark_topi_conv2d.py::test_conv2d[vta] Fatal Python error: Segmentation fault

Current thread 0x00007f0dc8525740 (most recent call first): File “/home/omen/tvm/python/tvm/_ffi/_ctypes/packed_func.py”, line 229 in call File “/home/omen/tvm/python/tvm/driver/build_module.py”, line 281 in build File “/home/omen/tvm/vta/python/vta/build_module.py”, line 125 in build File “/home/omen/tvm/vta/tests/python/integration/test_benchmark_topi_conv2d.py”, line 221 in run_conv2d File “/home/omen/tvm/vta/tests/python/integration/test_benchmark_topi_conv2d.py”, line 311 in _run File “/home/omen/tvm/vta/python/vta/testing/utils.py”, line 62 in run File “/home/omen/tvm/vta/tests/python/integration/test_benchmark_topi_conv2d.py”, line 313 in test_conv2d File “/home/omen/.local/lib/python3.8/site-packages/_pytest/python.py”, line 194 in pytest_pyfunc_call File “/home/omen/.local/lib/python3.8/site-packages/pluggy/_callers.py”, line 77 in _multicall File “/home/omen/.local/lib/python3.8/site-packages/pluggy/_manager.py”, line 115 in _hookexec File “/home/omen/.local/lib/python3.8/site-packages/pluggy/_hooks.py”, line 493 in call File “/home/omen/.local/lib/python3.8/site-packages/_pytest/python.py”, line 1792 in runtest File “/home/omen/.local/lib/python3.8/site-packages/_pytest/runner.py”, line 169 in pytest_runtest_call File “/home/omen/.local/lib/python3.8/site-packages/pluggy/_callers.py”, line 77 in _multicall File “/home/omen/.local/lib/python3.8/site-packages/pluggy/_manager.py”, line 115 in _hookexec File “/home/omen/.local/lib/python3.8/site-packages/pluggy/_hooks.py”, line 493 in call File “/home/omen/.local/lib/python3.8/site-packages/_pytest/runner.py”, line 262 in File “/home/omen/.local/lib/python3.8/site-packages/_pytest/runner.py”, line 341 in from_call File “/home/omen/.local/lib/python3.8/site-packages/_pytest/runner.py”, line 261 in call_runtest_hook File “/home/omen/.local/lib/python3.8/site-packages/_pytest/runner.py”, line 222 in call_and_report File “/home/omen/.local/lib/python3.8/site-packages/_pytest/runner.py”, line 133 in runtestprotocol File “/home/omen/.local/lib/python3.8/site-packages/_pytest/runner.py”, line 114 in pytest_runtest_protocol File “/home/omen/.local/lib/python3.8/site-packages/pluggy/_callers.py”, line 77 in _multicall File “/home/omen/.local/lib/python3.8/site-packages/pluggy/_manager.py”, line 115 in _hookexec File “/home/omen/.local/lib/python3.8/site-packages/pluggy/_hooks.py”, line 493 in call File “/home/omen/.local/lib/python3.8/site-packages/_pytest/main.py”, line 350 in pytest_runtestloop File “/home/omen/.local/lib/python3.8/site-packages/pluggy/_callers.py”, line 77 in _multicall File “/home/omen/.local/lib/python3.8/site-packages/pluggy/_manager.py”, line 115 in _hookexec File “/home/omen/.local/lib/python3.8/site-packages/pluggy/_hooks.py”, line 493 in call File “/home/omen/.local/lib/python3.8/site-packages/_pytest/main.py”, line 325 in _main File “/home/omen/.local/lib/python3.8/site-packages/_pytest/main.py”, line 271 in wrap_session File “/home/omen/.local/lib/python3.8/site-packages/_pytest/main.py”, line 318 in pytest_cmdline_main File “/home/omen/.local/lib/python3.8/site-packages/pluggy/_callers.py”, line 77 in _multicall File “/home/omen/.local/lib/python3.8/site-packages/pluggy/_manager.py”, line 115 in _hookexec File “/home/omen/.local/lib/python3.8/site-packages/pluggy/_hooks.py”, line 493 in call File “/home/omen/.local/lib/python3.8/site-packages/_pytest/config/init.py”, line 169 in main File “/home/omen/Applications/pycharm-2022.3.2/plugins/python/helpers/pycharm/_jb_pytest_runner.py”, line 51 in

Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

Could someone give me some tips how to fix this. Thank you very much!!

Host: tvm 0.14.0 ,vta_config TARGET set to “ultra96” ZCU104: tvm 0.14.0 ,vta_config TARGET set to “ultra96” Ubuntu 20.04