Skip to content

Commit ca6a3fd

Browse files
committed
Disable TORCH_MLIR_ENABLE_PYTORCH_EXTENSIONS instead
1 parent 3648259 commit ca6a3fd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ option(TORCH_MLIR_OUT_OF_TREE_BUILD "Specifies an out of tree build" OFF)
5050
# native extensions will be built.
5151
# TORCH_MLIR_ENABLE_PYTORCH_EXTENSIONS will be disabled by default shortly,
5252
# once some reorganizations of the testing codebase makes that possible.
53-
option(TORCH_MLIR_ENABLE_PYTORCH_EXTENSIONS "Enables PyTorch native extension features" ON)
53+
option(TORCH_MLIR_ENABLE_PYTORCH_EXTENSIONS "Enables PyTorch native extension features" OFF)
5454
# NOTE: The JIT_IR_IMPORTER paths have become unsupportable due to age and lack of maintainers.
5555
# Turning this off disables the old TorchScript path, leaving FX based import as the current supported option.
5656
# The option will be retained for a time, and if a maintainer is interested in setting up testing for it,
5757
# please reach out on the list and speak up for it. It will only be enabled in CI for test usage.
58-
cmake_dependent_option(TORCH_MLIR_ENABLE_JIT_IR_IMPORTER "Enables JIT IR Importer" OFF TORCH_MLIR_ENABLE_PYTORCH_EXTENSIONS OFF)
58+
cmake_dependent_option(TORCH_MLIR_ENABLE_JIT_IR_IMPORTER "Enables JIT IR Importer" ON TORCH_MLIR_ENABLE_PYTORCH_EXTENSIONS OFF)
5959
cmake_dependent_option(TORCH_MLIR_ENABLE_LTC "Enables LTC backend" OFF TORCH_MLIR_ENABLE_PYTORCH_EXTENSIONS OFF)
6060

6161
option(TORCH_MLIR_ENABLE_ONNX_C_IMPORTER "Enables the ONNX C importer" OFF)

build_tools/ci/build_posix.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ cmake -S "$repo_root/externals/llvm-project/llvm" -B "$build_dir" \
5151
-DLLVM_TARGETS_TO_BUILD=host \
5252
-DMLIR_ENABLE_BINDINGS_PYTHON=ON \
5353
-DTORCH_MLIR_ENABLE_LTC=ON \
54-
-DTORCH_MLIR_ENABLE_JIT_IR_IMPORTER=ON
54+
-DTORCH_MLIR_ENABLE_PYTORCH_EXTENSIONS=ON
5555
echo "::endgroup::"
5656

5757
echo "::group::Build"

0 commit comments

Comments
 (0)