Skip to content

Commit

Permalink
Enable torch_mlir_e2e_test when TORCH_MLIR_ENABLE_JIT_IR_IMPORTER OFF
Browse files Browse the repository at this point in the history
- To fix the bug No module named 'torch_mlir_e2e_test' when test torch-stable
  • Loading branch information
AmosLewis committed Aug 21, 2024
1 parent 02ed307 commit 3cdae9f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions projects/pt1/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ endif()
if(TORCH_MLIR_ENABLE_JIT_IR_IMPORTER)
add_subdirectory(torch_mlir/jit_ir_importer)
add_subdirectory(torch_mlir/csrc/jit_ir_importer)
else()
add_subdirectory(torch_mlir_e2e_test)
endif()


################################################################################
# Custom op example
# Required for running the update_torch_ods.sh and update_abstract_interp_lib.sh
Expand All @@ -61,6 +63,10 @@ if(TORCH_MLIR_ENABLE_JIT_IR_IMPORTER)
TorchMLIRJITIRImporterPybind
TorchMLIRE2ETestPythonModules
)
else()
add_dependencies(TorchMLIRPythonTorchExtensionsSources
TorchMLIRE2ETestPythonModules
)
endif()

if(TORCH_MLIR_ENABLE_LTC)
Expand Down

0 comments on commit 3cdae9f

Please sign in to comment.