Skip to content

Commit be86954

Browse files
huajsjtmoreau89
authored andcommitted
[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.
1 parent 2ee0f65 commit be86954

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/modules/VTA.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ elseif(PYTHON)
8484
# Rules for Zynq-class FPGAs with pynq OS support (see pynq.io)
8585
if(${VTA_TARGET} STREQUAL "pynq" OR
8686
${VTA_TARGET} STREQUAL "ultra96")
87-
file(GLOB FPGA_RUNTIME_SRCS vta/src/pynq/pynq_driver.cc)
87+
list(APPEND FPGA_RUNTIME_SRCS vta/src/pynq/pynq_driver.cc)
8888
# Rules for Pynq v2.4
8989
find_library(__cma_lib NAMES cma PATH /usr/lib)
9090
elseif(${VTA_TARGET} STREQUAL "de10nano") # DE10-Nano rules

0 commit comments

Comments
 (0)