Skip to content

Commit b088da1

Browse files
authored
Merge pull request #548 from Xilinx/bump_to_33337fc6
[AutoBump] Merge with fixes of 33337fc (Jan 17) (155)
2 parents 6ae7af5 + 979a59b commit b088da1

File tree

6 files changed

+23
-19
lines changed

6 files changed

+23
-19
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,6 @@ jobs:
2727
env:
2828
CACHE_DIR: ${{ github.workspace }}/.container-cache
2929
steps:
30-
- name: Configure local git mirrors
31-
run: |
32-
# Our stock runners have access to certain local git caches. If these
33-
# files are available, it will prime the cache and configure git to
34-
# use them. Practically, this eliminates network/latency for cloning
35-
# llvm.
36-
if [[ -x /gitmirror/scripts/trigger_update_mirrors.sh ]]; then
37-
/gitmirror/scripts/trigger_update_mirrors.sh
38-
/gitmirror/scripts/git_config.sh
39-
fi
4030
- name: "Checking out repository"
4131
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
4232
with:
@@ -55,11 +45,25 @@ jobs:
5545
restore-keys: |
5646
build-test-cpp-asserts-manylinux-${{ matrix.torch-version }}-v2-
5747
48+
- name: "Setting up Python"
49+
run: |
50+
sudo apt update
51+
sudo apt install software-properties-common -y
52+
sudo add-apt-repository ppa:deadsnakes/ppa -y
53+
sudo apt install python3.11 python3-pip -y
54+
sudo apt-get install python3.11-dev python3.11-venv build-essential -y
55+
5856
- name: Install python deps (torch-${{ matrix.torch-version }})
5957
run: |
6058
export cache_dir="${{ env.CACHE_DIR }}"
6159
bash build_tools/ci/install_python_deps.sh ${{ matrix.torch-version }}
6260
61+
- name: ccache
62+
uses: hendrikmuhs/ccache-action@53911442209d5c18de8a31615e0923161e435875 # v1.2.16
63+
with:
64+
key: ${{ github.job }}-${{ matrix.torch-version }}
65+
save: ${{ needs.setup.outputs.write-caches == 1 }}
66+
6367
- name: Build project
6468
run: |
6569
export cache_dir="${{ env.CACHE_DIR }}"

build_tools/ci/build_posix.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ echo "Caching to ${cache_dir}"
2020
mkdir -p "${cache_dir}/ccache"
2121
mkdir -p "${cache_dir}/pip"
2222

23-
python="$(which python)"
23+
python="$(which python3)"
2424
echo "Using python: $python"
2525

2626
export CMAKE_TOOLCHAIN_FILE="$this_dir/linux_default_toolchain.cmake"
@@ -40,7 +40,7 @@ echo "::group::CMake configure"
4040
cmake -S "$repo_root/externals/llvm-project/llvm" -B "$build_dir" \
4141
-GNinja \
4242
-DCMAKE_BUILD_TYPE=Release \
43-
-DPython3_EXECUTABLE="$(which python)" \
43+
-DPython3_EXECUTABLE="$(which python3)" \
4444
-DLLVM_ENABLE_ASSERTIONS=ON \
4545
-DTORCH_MLIR_ENABLE_WERROR_FLAG=ON \
4646
-DCMAKE_INSTALL_PREFIX="$install_dir" \

build_tools/ci/install_python_deps.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ repo_root="$(cd $this_dir/../.. && pwd)"
77
torch_version="${1:-unknown}"
88

99
echo "::group::installing llvm python deps"
10-
python -m pip install --no-cache-dir -r $repo_root/externals/llvm-project/mlir/python/requirements.txt
10+
python3 -m pip install --no-cache-dir -r $repo_root/externals/llvm-project/mlir/python/requirements.txt
1111
echo "::endgroup::"
1212

1313
case $torch_version in
@@ -30,5 +30,5 @@ case $torch_version in
3030
esac
3131

3232
echo "::group::installing test requirements"
33-
python -m pip install --no-cache-dir -r $repo_root/test-requirements.txt
33+
python3 -m pip install --no-cache-dir -r $repo_root/test-requirements.txt
3434
echo "::endgroup::"

build_tools/ci/test_posix.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ python -m e2e_testing.main --config=fx_importer_tosa -v
1313
echo "::endgroup::"
1414

1515
echo "::group::Run ONNX e2e integration tests"
16-
python -m e2e_testing.main --config=onnx -v
16+
python3 -m e2e_testing.main --config=onnx -v
1717
echo "::endgroup::"
1818

1919
case $torch_version in
@@ -27,13 +27,13 @@ case $torch_version in
2727

2828
# TODO: Need to verify in the stable version
2929
echo "::group::Run FxImporter e2e integration tests"
30-
python -m e2e_testing.main --config=fx_importer -v
30+
python3 -m e2e_testing.main --config=fx_importer -v
3131
echo "::endgroup::"
3232

3333
# AMD: Disabled stablehlo.
3434
# TODO: Need to verify in the stable version
3535
# echo "::group::Run FxImporter2Stablehlo e2e integration tests"
36-
# python -m e2e_testing.main --config=fx_importer_stablehlo -v
36+
# python3 -m e2e_testing.main --config=fx_importer_stablehlo -v
3737
# echo "::endgroup::"
3838
;;
3939
stable)

build_tools/update_abstract_interp_lib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ fi
4444
# To enable this python package, manually build torch_mlir with:
4545
# -DTORCH_MLIR_ENABLE_JIT_IR_IMPORTER=ON
4646
# TODO: move this package out of JIT_IR_IMPORTER.
47-
PYTHONPATH="${pypath}" python \
47+
PYTHONPATH="${pypath}" python3 \
4848
-m torch_mlir.jit_ir_importer.build_tools.abstract_interp_lib_gen \
4949
--pytorch_op_extensions=${ext_module:-""} \
5050
--torch_transforms_cpp_dir="${torch_transforms_cpp_dir}"

build_tools/update_torch_ods.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ set +u
4545
# To enable this python package, manually build torch_mlir with:
4646
# -DTORCH_MLIR_ENABLE_PYTORCH_EXTENSIONS=ON
4747
# TODO: move this package out of JIT_IR_IMPORTER.
48-
PYTHONPATH="${PYTHONPATH}:${pypath}" python \
48+
PYTHONPATH="${PYTHONPATH}:${pypath}" python3 \
4949
-m torch_mlir.jit_ir_importer.build_tools.torch_ods_gen \
5050
--torch_ir_include_dir="${torch_ir_include_dir}" \
5151
--pytorch_op_extensions="${ext_module}" \

0 commit comments

Comments
 (0)