Simplify Bazel build workflow (#1587)

Remove `run_bazel_build.sh`, simplify docker's entrypoint to start container at `utils/bazel` directory, update docs.
pull/1591/head
Sambhav Jain 2022-11-15 08:34:43 -08:00 committed by GitHub
parent 92f385bd9f
commit b320f7fb77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 6 deletions

View File

@ -180,9 +180,9 @@ Torch-MLIR can also be built using Bazel (apart from the official CMake build) f
```
2. Build torch-mlir using bazel (from container):
```shell
./utils/bazel/docker/run_bazel_build.sh
bazel build @torch-mlir//:torch-mlir-opt
```
3. Find the built binary at `utils/bazel/bazel-bin/external/torch-mlir/torch-mlir-opt`.
3. Find the built binary at `bazel-bin/external/torch-mlir/torch-mlir-opt`.
## Docker Builds

View File

@ -37,4 +37,4 @@ RUN python3 -m pip install --upgrade --ignore-installed -r requirements.txt
RUN apt-get clean \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /opt/src/torch-mlir
WORKDIR /opt/src/torch-mlir/utils/bazel

View File

@ -1,3 +0,0 @@
#!/usr/bin/env bash
cd "$(pwd)/utils/bazel" && bazel build @torch-mlir//:torch-mlir-opt