Skip to content

Commit

Permalink
[VTA] Fix FSIM Compile Error. (apache#6070)
Browse files Browse the repository at this point in the history
Issue:
when set vta target into "sim", vta compile would get fail and
show error message "fatal error: vta/driver.h: No such file or directory".

Solution:
set VTA_HW include path correctly.
  • Loading branch information
huajsj authored and Trevor Morris committed Sep 2, 2020
1 parent 83a6afc commit d681d10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/modules/VTA.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,13 @@ elseif(PYTHON)
# Target lib: vta
add_library(vta SHARED ${FPGA_RUNTIME_SRCS})
target_include_directories(vta PUBLIC vta/runtime)
target_include_directories(vta PUBLIC ${VTA_HW_PATH}/include)
foreach(__def ${VTA_DEFINITIONS})
string(SUBSTRING ${__def} 3 -1 __strip_def)
target_compile_definitions(vta PUBLIC ${__strip_def})
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 d681d10

Please sign in to comment.