From a3e76fa29a380a89056ba99acf6c4b607a4fc629 Mon Sep 17 00:00:00 2001 From: rahul shrivastava Date: Wed, 18 Dec 2024 06:20:07 -0800 Subject: [PATCH 1/3] 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 63ef01cdeb51..f528c63fe6ac 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: | + yum update -y + yum install -y wget + wget https://apt.llvm.org/llvm.sh + chmod +x llvm.sh + ./llvm.sh 17 + 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 36e9057c973f..ea3e570c8b7e 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::" From d7e61682ca7146005df78f933fa5abac9cd419ec Mon Sep 17 00:00:00 2001 From: rahul shrivastava Date: Wed, 18 Dec 2024 06:59:50 -0800 Subject: [PATCH 2/3] ubuntu Signed-off-by: rahul shrivastava --- .github/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f528c63fe6ac..1038c014430c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,12 +29,12 @@ jobs: steps: - name: Install Clang 17.0.6 run: | - yum update -y - yum install -y wget - wget https://apt.llvm.org/llvm.sh - chmod +x llvm.sh - ./llvm.sh 17 - yum install -y clang-17 lldb-17 lld-17 clang-tools-extra-17 + apt update + apt install -y software-properties-common + add-apt-repository -y ppa:ubuntu-toolchain-r/test + apt install -y clang-17 lldb-17 + update-alternatives --install /usr/bin/clang clang /usr/bin/clang-17 100 + update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-17 100 echo "Clang version installed:" - name: Verify Clang installation run: clang --version From 2f80fdb5ab7084eee43edf99c7d337e6433ad998 Mon Sep 17 00:00:00 2001 From: rahul shrivastava Date: Wed, 18 Dec 2024 07:02:36 -0800 Subject: [PATCH 3/3] apt-get Signed-off-by: rahul shrivastava --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1038c014430c..0e1c9ea87b66 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,10 +29,10 @@ jobs: steps: - name: Install Clang 17.0.6 run: | - apt update - apt install -y software-properties-common + apt-get update + apt-get install -y software-properties-common add-apt-repository -y ppa:ubuntu-toolchain-r/test - apt install -y clang-17 lldb-17 + apt-get install -y clang-17 lldb-17 update-alternatives --install /usr/bin/clang clang /usr/bin/clang-17 100 update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-17 100 echo "Clang version installed:"