Skip to content

Commit

Permalink
[VTA] Fix VTA compile issue (apache#5481)
Browse files Browse the repository at this point in the history
* [VTA] Fix Pynq driver build issue.
Issue:
When doing vta compile in xilinx FPGA, the pynqdriver.cc report can
not find <vta/driver.h>

Solution:
add related path.

* Fix libvta load fail issue.

issue:
run vta on pynq board libvta.so load failed.

solution:
fixed VTA.make logic issue
  • Loading branch information
huajsj authored and trevor-m committed Jun 18, 2020
1 parent 1e29992 commit 1bd422f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/modules/VTA.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ elseif(PYTHON)

# VTA FPGA driver sources
if(USE_VTA_FPGA)
file(GLOB FPGA_RUNTIME_SRCS ${VTA_HW_PATH}/src/*.cc)
file(GLOB FPGA_RUNTIME_SRCS vta/runtime/*.cc)
# Rules for Zynq-class FPGAs with pynq OS support (see pynq.io)
if(${VTA_TARGET} STREQUAL "pynq" OR
${VTA_TARGET} STREQUAL "ultra96")
Expand All @@ -108,6 +108,7 @@ elseif(PYTHON)
endforeach()
if(${VTA_TARGET} STREQUAL "pynq" OR
${VTA_TARGET} STREQUAL "ultra96")
target_include_directories(vta PUBLIC ${VTA_HW_PATH}/include)
target_link_libraries(vta ${__cma_lib})
elseif(${VTA_TARGET} STREQUAL "de10nano") # DE10-Nano rules
#target_compile_definitions(vta PUBLIC VTA_MAX_XFER=2097152) # (1<<21)
Expand Down

0 comments on commit 1bd422f

Please sign in to comment.