From bf93e137c8fa99c979c741d1e70f3ea1f84f9bcc Mon Sep 17 00:00:00 2001 From: huajsj Date: Tue, 27 Aug 2019 18:17:49 -0700 Subject: [PATCH] [VTA] Infinite recursive device_api.ext_dev call fix. Issue when try vta on fpga board, would see a Infinite recursive device_api.ext_dev issue that cause stack overflow and vta failed. Analysis: device_api.ext_dev function in rpc_server.py is use to load vta library, once vta library get load, device_api.ext_dev would get replaced with vta function by vta library, vta device_api.cc did such work, but because a logic issue in VTA.cmake, the said file not get compiled, then vta would keep failing on rpc_server.py. Solution: fix the logic issue in VTA.cmake. --- cmake/modules/VTA.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/modules/VTA.cmake b/cmake/modules/VTA.cmake index fe423ce2208f..9b5097f0776f 100644 --- a/cmake/modules/VTA.cmake +++ b/cmake/modules/VTA.cmake @@ -84,7 +84,7 @@ elseif(PYTHON) # Rules for Zynq-class FPGAs with pynq OS support (see pynq.io) if(${VTA_TARGET} STREQUAL "pynq" OR ${VTA_TARGET} STREQUAL "ultra96") - file(GLOB FPGA_RUNTIME_SRCS vta/src/pynq/pynq_driver.cc) + list(APPEND FPGA_RUNTIME_SRCS vta/src/pynq/pynq_driver.cc) endif() # Target lib: vta add_library(vta SHARED ${FPGA_RUNTIME_SRCS})