diff --git a/CMakeLists.txt b/CMakeLists.txt index f8da231d84f28..b8aec9fd3852a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -50,12 +50,12 @@ option(TORCH_MLIR_OUT_OF_TREE_BUILD "Specifies an out of tree build" OFF) # native extensions will be built. # TORCH_MLIR_ENABLE_PYTORCH_EXTENSIONS will be disabled by default shortly, # once some reorganizations of the testing codebase makes that possible. -option(TORCH_MLIR_ENABLE_PYTORCH_EXTENSIONS "Enables PyTorch native extension features" ON) +option(TORCH_MLIR_ENABLE_PYTORCH_EXTENSIONS "Enables PyTorch native extension features" OFF) # NOTE: The JIT_IR_IMPORTER paths have become unsupportable due to age and lack of maintainers. # Turning this off disables the old TorchScript path, leaving FX based import as the current supported option. # The option will be retained for a time, and if a maintainer is interested in setting up testing for it, # please reach out on the list and speak up for it. It will only be enabled in CI for test usage. -cmake_dependent_option(TORCH_MLIR_ENABLE_JIT_IR_IMPORTER "Enables JIT IR Importer" OFF TORCH_MLIR_ENABLE_PYTORCH_EXTENSIONS OFF) +cmake_dependent_option(TORCH_MLIR_ENABLE_JIT_IR_IMPORTER "Enables JIT IR Importer" ON TORCH_MLIR_ENABLE_PYTORCH_EXTENSIONS OFF) cmake_dependent_option(TORCH_MLIR_ENABLE_LTC "Enables LTC backend" OFF TORCH_MLIR_ENABLE_PYTORCH_EXTENSIONS OFF) option(TORCH_MLIR_ENABLE_ONNX_C_IMPORTER "Enables the ONNX C importer" OFF) diff --git a/build_tools/ci/build_posix.sh b/build_tools/ci/build_posix.sh index 32af9363279c3..ea3e570c8b7e1 100755 --- a/build_tools/ci/build_posix.sh +++ b/build_tools/ci/build_posix.sh @@ -51,7 +51,7 @@ cmake -S "$repo_root/externals/llvm-project/llvm" -B "$build_dir" \ -DLLVM_TARGETS_TO_BUILD=host \ -DMLIR_ENABLE_BINDINGS_PYTHON=ON \ -DTORCH_MLIR_ENABLE_LTC=ON \ - -DTORCH_MLIR_ENABLE_JIT_IR_IMPORTER=ON + -DTORCH_MLIR_ENABLE_PYTORCH_EXTENSIONS=ON echo "::endgroup::" echo "::group::Build"