mirror of https://github.com/llvm/torch-mlir
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
parent
92f385bd9f
commit
b320f7fb77
|
@ -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):
|
2. Build torch-mlir using bazel (from container):
|
||||||
```shell
|
```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
|
## Docker Builds
|
||||||
|
|
||||||
|
|
|
@ -37,4 +37,4 @@ RUN python3 -m pip install --upgrade --ignore-installed -r requirements.txt
|
||||||
RUN apt-get clean \
|
RUN apt-get clean \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
WORKDIR /opt/src/torch-mlir
|
WORKDIR /opt/src/torch-mlir/utils/bazel
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
cd "$(pwd)/utils/bazel" && bazel build @torch-mlir//:torch-mlir-opt
|
|
Loading…
Reference in New Issue