Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for presence of LLVM configuration. #8293

Merged
merged 1 commit into from
Jun 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions cmake/modules/contrib/ArmComputeLib.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ if(USE_ARM_COMPUTE_LIB)
if(NOT USE_ARM_COMPUTE_LIB_GRAPH_EXECUTOR)
list(APPEND COMPILER_SRCS ${ACL_RUNTIME_MODULE})
endif()
if(NOT DEFINED TVM_LLVM_VERSION)
message(FATAL_ERROR "Support for offloading to Compute library for the Arm Architecture requires LLVM Support")
endif()

message(STATUS "Build with Arm Compute Library support...")
endif()

Expand Down
4 changes: 4 additions & 0 deletions cmake/modules/contrib/EthosN.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
if(NOT USE_ETHOSN STREQUAL "OFF")
find_ethosn(${USE_ETHOSN})

if(NOT DEFINED TVM_LLVM_VERSION)
message(FATAL_ERROR "Support for offloading to Ethos-N requires LLVM Support")
endif()

if(NOT ETHOSN_FOUND)
message(FATAL_ERROR "Cannot find Ethos-N, USE_ETHOSN=" ${USE_ETHOSN})

Expand Down