From be869546243182a965dbeb1438fc2c2402558040 Mon Sep 17 00:00:00 2001 From: Hua Jiang Date: Tue, 8 Oct 2019 12:16:03 -0700 Subject: [PATCH] [VTA] hotfix for de10-nano driver (#4081) Issue: git clone latest TVM/VTA and run VTA on xilinx FPGA board, application crashed due to the "call stack overflow" which caused by a infinite recursive function call. this issue ever happen before and get addressed by PR 3843. Analysis: seems like de10-nano driver PR used old code base then the logic change of 3843 get eliminated. Solution: add the logic back. --- 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 45eea57..0e58d76 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) # Rules for Pynq v2.4 find_library(__cma_lib NAMES cma PATH /usr/lib) elseif(${VTA_TARGET} STREQUAL "de10nano") # DE10-Nano rules -- 2.7.4