From 9a23c29b00820f21a347bb8e423fc292ad714b13 Mon Sep 17 00:00:00 2001 From: rahul shrivastava Date: Wed, 18 Dec 2024 06:20:07 -0800 Subject: [PATCH] Downgrade clang Signed-off-by: rahul shrivastava --- .github/workflows/ci.yml | 11 +++++++++++ build_tools/ci/build_posix.sh | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 63ef01cdeb519..9b0700f71407e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,6 +27,17 @@ jobs: env: CACHE_DIR: ${{ github.workspace }}/.container-cache steps: + - name: Install Clang 17.0.6 + run: | + sudo yum update -y + sudo yum install -y wget + wget https://apt.llvm.org/llvm.sh + sudo hmod +x llvm.sh + ./llvm.sh 17 + sudo yum install -y clang-17 lldb-17 lld-17 clang-tools-extra-17 + echo "Clang version installed:" + - name: Verify Clang installation + run: clang --version - name: Configure local git mirrors run: | # Our stock runners have access to certain local git caches. If these diff --git a/build_tools/ci/build_posix.sh b/build_tools/ci/build_posix.sh index 36e9057c973f8..ea3e570c8b7e1 100755 --- a/build_tools/ci/build_posix.sh +++ b/build_tools/ci/build_posix.sh @@ -50,7 +50,7 @@ cmake -S "$repo_root/externals/llvm-project/llvm" -B "$build_dir" \ -DLLVM_EXTERNAL_TORCH_MLIR_SOURCE_DIR="$repo_root" \ -DLLVM_TARGETS_TO_BUILD=host \ -DMLIR_ENABLE_BINDINGS_PYTHON=ON \ - -DTORCH_MLIR_ENABLE_LTC=OFF \ + -DTORCH_MLIR_ENABLE_LTC=ON \ -DTORCH_MLIR_ENABLE_PYTORCH_EXTENSIONS=ON echo "::endgroup::"