-
Notifications
You must be signed in to change notification settings - Fork 646
Open
Labels
module: build/installIssues related to the cmake and buck2 builds, and to installing ExecuTorchIssues related to the cmake and buck2 builds, and to installing ExecuTorch
Description
When building a CMake project with ET as a dependency as follows, the build fails with a test-related error. Tests should not be built. We should investigate and resolve the issue.
include(FetchContent)
FetchContent_Declare(
executorch
GIT_REPOSITORY https://github.com/pytorch/executorch.git
GIT_TAG v0.6.0
GIT_SHALLOW TRUE
GIT_PROGRESS TRUE
SOURCE_DIR ${CMAKE_CURRENT_BINARY_DIR}/_deps/executorch # https://github.com/pytorch/executorch/issues/6475
)
set(EXECUTORCH_BUILD_XNNPACK ON)
set(EXECUTORCH_BUILD_VULKAN ON)
set(EXECUTORCH_BUILD_KERNELS_OPTIMIZED ON)
set(EXECUTORCH_BUILD_KERNELS_QUANTIZED ON)
set(EXECUTORCH_BUILD_EXTENSION_MODULE ON)
set(EXECUTORCH_BUILD_EXTENSION_TENSOR ON)
set(EXECUTORCH_BUILD_EXECUTOR_RUNNER OFF)
set(EXECUTORCH_LOG_LEVEL "info")
FetchContent_MakeAvailable(executorch)
See Discord thread: https://discordapp.com/channels/1334270993966825602/1404274480540418148/1404274480540418148.
Metadata
Metadata
Assignees
Labels
module: build/installIssues related to the cmake and buck2 builds, and to installing ExecuTorchIssues related to the cmake and buck2 builds, and to installing ExecuTorch