torch-mlir/utils/bazel
Sambhav Jain c7d7d7f004
[Bazel] Add TorchToTensor dep to TorchMLIRTorchConversionPasses (#2847)
Fixes bazel build error:
```
ERROR: /root/.cache/bazel/_bazel_root/b89349c08f7224396763d14fe35cba11/external/torch-mlir/BUILD.bazel:547:11: Compiling lib/Dialect/TorchConversion/Transforms/Passes.cpp failed: (Exit 1): clang failed: error executing command /usr/lib/llvm-16/bin/clang -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fcolor-diagnostics -fno-omit-frame-pointer ... (remaining 224 arguments skipped)

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
external/torch-mlir/lib/Dialect/TorchConversion/Transforms/Passes.cpp:23:10: fatal error: 'torch-mlir/Conversion/TorchToTensor/TorchToTensor.h' file not found
#include "torch-mlir/Conversion/TorchToTensor/TorchToTensor.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Target @torch-mlir//:torch-mlir-opt failed to build
```

Bazel CI:
https://github.com/sjain-stanford/torch-mlir/actions/runs/7735724133/job/21091865352
2024-01-31 22:07:06 -08:00
..
docker [Bazel] Fix clang version, missing mhlo deps and add reqs files (#1898) 2023-02-24 15:07:34 -08:00
torch-mlir-overlay [Bazel] Add TorchToTensor dep to TorchMLIRTorchConversionPasses (#2847) 2024-01-31 22:07:06 -08:00
.bazelrc [Bazel] Update to Ubuntu-22.04 and clang-16 for Bazel build docker (#1523) 2022-11-10 13:11:06 -08:00
BUILD.bazel Add bazel build support (1/N) (#706) 2022-04-06 11:20:39 -07:00
WORKSPACE.bazel Bump LLVM and StableHLO (#2598) 2023-11-28 22:12:24 -08:00
configure.bzl [Bazel] Run buildifier (#1250) 2022-08-18 22:42:58 -07:00
overlay_directories.py Add bazel build support (1/N) (#706) 2022-04-06 11:20:39 -07:00