Skip to content

Commit f9bd4c2

Browse files
[CI] Disable building StableHLO in CI (#4161)
This commit disables the StableHLO build in CI and the e2e integration tests for the `fx_importer_stablehlo` config. This action is temporary and can be reverted once the latest integration of StableHLO is done in the project. Ref link of discussion: #4152 Signed-off-by: Vivek Khandelwal <vivekkhandelwal1424@gmail.com>
1 parent bff2a99 commit f9bd4c2

File tree

5 files changed

+9
-3
lines changed

5 files changed

+9
-3
lines changed

build_tools/build_standalone.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ cmake -GNinja -B"$build_dir" "$llvm_project_dir/llvm" \
2020
-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
2121
-DLLVM_ENABLE_PROJECTS=mlir \
2222
-DLLVM_EXTERNAL_PROJECTS="torch-mlir" \
23+
-DTORCH_MLIR_ENABLE_STABLEHLO=OFF \
2324
-DLLVM_EXTERNAL_TORCH_MLIR_SOURCE_DIR="$project_dir" \
2425
-DMLIR_ENABLE_BINDINGS_PYTHON=ON \
2526
-DLLVM_ENABLE_ASSERTIONS=ON \

build_tools/ci/build_posix.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +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=OFF \
54+
-DTORCH_MLIR_ENABLE_STABLEHLO=OFF \
5455
-DTORCH_MLIR_ENABLE_PYTORCH_EXTENSIONS=ON
5556
echo "::endgroup::"
5657

build_tools/ci/test_posix.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ case $torch_version in
2727
echo "::endgroup::"
2828

2929
# TODO: Need to verify in the stable version
30-
echo "::group::Run FxImporter2Stablehlo e2e integration tests"
31-
python3 -m e2e_testing.main --config=fx_importer_stablehlo -v
32-
echo "::endgroup::"
30+
# TODO: Enable for nightly once the Stabelhlo integration is done
31+
# echo "::group::Run FxImporter2Stablehlo e2e integration tests"
32+
# python3 -m e2e_testing.main --config=fx_importer_stablehlo -v
33+
# echo "::endgroup::"
3334

3435
echo "::group::Run FxImporter TOSA e2e integration tests"
3536
python3 -m e2e_testing.main --config=fx_importer_tosa -v

build_tools/e2eshark_build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ cmake -S "$repo_root/externals/llvm-project/llvm" -B "$build_dir" \
2323
-DPython3_FIND_VIRTUALENV=ONLY \
2424
-DLLVM_ENABLE_PROJECTS=mlir \
2525
-DLLVM_EXTERNAL_PROJECTS="torch-mlir" \
26+
-DTORCH_MLIR_ENABLE_STABLEHLO=OFF \
2627
-DLLVM_EXTERNAL_TORCH_MLIR_SOURCE_DIR="$PWD" \
2728
-DMLIR_ENABLE_BINDINGS_PYTHON=ON \
2829
-DLLVM_TARGETS_TO_BUILD=host

build_tools/python_deploy/build_linux_packages.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ function build_in_tree() {
239239
-DLLVM_TARGETS_TO_BUILD=host \
240240
-DMLIR_ENABLE_BINDINGS_PYTHON=ON \
241241
-DTORCH_MLIR_ENABLE_LTC=${enable_ltc} \
242+
-DTORCH_MLIR_ENABLE_STABLEHLO=OFF \
242243
-DTORCH_MLIR_USE_INSTALLED_PYTORCH="$torch_from_bin" \
243244
-DTORCH_MLIR_SRC_PYTORCH_REPO=${TORCH_MLIR_SRC_PYTORCH_REPO} \
244245
-DTORCH_MLIR_SRC_PYTORCH_BRANCH=${TORCH_MLIR_SRC_PYTORCH_BRANCH} \
@@ -405,6 +406,7 @@ function build_out_of_tree() {
405406
-DMLIR_DIR="/main_checkout/torch-mlir/llvm-build/lib/cmake/mlir/" \
406407
-DMLIR_ENABLE_BINDINGS_PYTHON=OFF \
407408
-DTORCH_MLIR_ENABLE_LTC=${enable_ltc} \
409+
-DTORCH_MLIR_ENABLE_STABLEHLO=OFF \
408410
-DTORCH_MLIR_USE_INSTALLED_PYTORCH="$torch_from_bin" \
409411
-DTORCH_MLIR_SRC_PYTORCH_REPO=${TORCH_MLIR_SRC_PYTORCH_REPO} \
410412
-DTORCH_MLIR_SRC_PYTORCH_BRANCH=${TORCH_MLIR_SRC_PYTORCH_BRANCH} \

0 commit comments

Comments
 (0)