Skip to content
Merged
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
7 changes: 5 additions & 2 deletions mlir/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,13 @@ set_target_properties(mlir-doc PROPERTIES FOLDER "MLIR/Docs")

# Only enable execution engine if the native target is available.
if(${LLVM_NATIVE_ARCH} IN_LIST LLVM_TARGETS_TO_BUILD)
set(MLIR_ENABLE_EXECUTION_ENGINE 1)
set(MLIR_ENABLE_EXECUTION_ENGINE_default 1)
else()
set(MLIR_ENABLE_EXECUTION_ENGINE 0)
set(MLIR_ENABLE_EXECUTION_ENGINE_default 0)
endif()
option(MLIR_ENABLE_EXECUTION_ENGINE
"Enable building the MLIR Execution Engine."
${MLIR_ENABLE_EXECUTION_ENGINE_default})

# Build the ROCm conversions and run according tests if the AMDGPU backend
# is available.
Expand Down
Loading