Skip to content

Commit

Permalink
remove zlib from torch-mlir-build
Browse files Browse the repository at this point in the history
  • Loading branch information
makslevental committed Jun 5, 2023
1 parent a831835 commit 2056519
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/build_torch_mlir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ on:
push:
paths:
- externals/**
- .github/workflows/build_torch_mlir.yml
pull_request:
paths:
- externals/**
- .github/workflows/build_torch_mlir.yml

jobs:

Expand Down Expand Up @@ -51,7 +53,7 @@ jobs:
echo "TORCH_MLIR_MAIN_SRC_DIR=${GITHUB_WORKSPACE}/sandbox" | tee -a $GITHUB_ENV
echo "TORCH_MLIR_MAIN_BINARY_DIR=${GITHUB_WORKSPACE}/sandbox/build" | tee -a $GITHUB_ENV
echo "TORCH_MLIR_INSTALL_DIR=${GITHUB_WORKSPACE}/torch_mlir_install" | tee -a $GITHUB_ENV
echo "TORCH_MLIR_HOST_MAIN_BINARY_DIR=${GITHUB_WORKSPACE}/sandbox/build_host" | tee -a $GITHUB_ENV
echo "TORCH_MLIR_HOST_MAIN_BUILD_DIR=${GITHUB_WORKSPACE}/sandbox/build_host" | tee -a $GITHUB_ENV
echo "TORCH_MLIR_COMMIT=${{ needs.get_torch_mlir_commit.outputs.TORCH_MLIR_COMMIT }}" | tee -a $GITHUB_ENV
- name: Set up Python
Expand Down Expand Up @@ -102,9 +104,9 @@ jobs:
-DLLVM_ENABLE_ZSTD=OFF \
-DLLVM_TARGETS_TO_BUILD=X86 \
-S${TORCH_MLIR_MAIN_SRC_DIR}/externals/llvm-project/llvm \
-B${TORCH_MLIR_HOST_MAIN_BINARY_DIR}
-B${TORCH_MLIR_HOST_MAIN_BUILD_DIR}
cmake --build ${TORCH_MLIR_HOST_MAIN_BINARY_DIR} \
cmake --build ${TORCH_MLIR_HOST_MAIN_BUILD_DIR} \
--target llvm-tblgen mlir-tblgen mlir-linalg-ods-yaml-gen mlir-pdll
- name: Choose compiler and set env vars
Expand Down Expand Up @@ -141,6 +143,7 @@ jobs:
-DLLVM_ENABLE_ASSERTIONS=ON \
-DLLVM_ENABLE_PROJECTS=mlir \
-DLLVM_ENABLE_TERMINFO=OFF \
-DLLVM_ENABLE_ZLIB=OFF \
-DLLVM_ENABLE_ZSTD=OFF \
-DLLVM_EXTERNAL_PROJECTS=torch-mlir;torch-mlir-dialects \
-DLLVM_EXTERNAL_TORCH_MLIR_DIALECTS_SOURCE_DIR=${TORCH_MLIR_MAIN_SRC_DIR}/externals/llvm-external-projects/torch-mlir-dialects \
Expand All @@ -166,11 +169,11 @@ jobs:
-DMACOSX_DEPLOYMENT_TARGET=12.0"
elif [ x"${{ matrix.os }}" == x"ubuntu-latest" ] && [ x"${{ matrix.arch }}" == x"AArch64" ]; then
CMAKE_CONFIGS="${CMAKE_CONFIGS} \
-DLLVM_TABLEGEN=$TORCH_MLIR_HOST_MAIN_BINARY_DIR/bin/llvm-tblgen \
-DMLIR_LINALG_ODS_YAML_GEN=$TORCH_MLIR_HOST_MAIN_BINARY_DIR/bin/mlir-linalg-ods-yaml-gen \
-DMLIR_LINALG_ODS_YAML_GEN_EXE=$TORCH_MLIR_HOST_MAIN_BINARY_DIR/bin/mlir-linalg-ods-yaml-gen \
-DMLIR_PDLL_TABLEGEN=$TORCH_MLIR_HOST_MAIN_BINARY_DIR/bin/mlir-pdll \
-DMLIR_TABLEGEN=$TORCH_MLIR_HOST_MAIN_BINARY_DIR/bin/mlir-tblgen"
-DLLVM_TABLEGEN=$TORCH_MLIR_HOST_MAIN_BUILD_DIR/bin/llvm-tblgen \
-DMLIR_LINALG_ODS_YAML_GEN=$TORCH_MLIR_HOST_MAIN_BUILD_DIR/bin/mlir-linalg-ods-yaml-gen \
-DMLIR_LINALG_ODS_YAML_GEN_EXE=$TORCH_MLIR_HOST_MAIN_BUILD_DIR/bin/mlir-linalg-ods-yaml-gen \
-DMLIR_PDLL_TABLEGEN=$TORCH_MLIR_HOST_MAIN_BUILD_DIR/bin/mlir-pdll \
-DMLIR_TABLEGEN=$TORCH_MLIR_HOST_MAIN_BUILD_DIR/bin/mlir-tblgen"
fi
echo $CMAKE_CONFIGS
Expand Down

0 comments on commit 2056519

Please sign in to comment.