5 Commits

Author SHA1 Message Date
60191196d4 [AutoAccept][Codemod][FBSourceBuckFormatLinter] Daily arc lint --take BUCKFORMAT
Reviewed By: zertosh

Differential Revision: D33229262

fbshipit-source-id: 7c22aa59a2a9eea94d2f403c339eb20abc7d9c41
2021-12-19 16:34:00 -08:00
e35bf56461 [Bazel] Add CUDA build to CI (#66241)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/35316
On master, bazel cuda build is disabled due to lack of a proper `cu_library` rule. This PR:
- Add `rules_cuda` to the WORKSPACE and forward `cu_library` to `rules_cuda`.
- Use a simple local cuda and cudnn repositories (adopted from TRTorch) for cuda 11.3.
- Fix current broken cuda build.
- Enable cuda build in CI, not just for `:torch` target but all the test binaries to catch undefined symbols.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/66241

Reviewed By: ejguan

Differential Revision: D31544091

Pulled By: malfet

fbshipit-source-id: fd3c34d0e8f80fee06f015694a4c13a8e9e12206
2021-12-17 13:44:29 -08:00
5b2a7eaa03 [codemod][fbcode/caffe2] Apply all buildifier fixes
Test Plan: Visual inspection. Sandcastle.

Reviewed By: zsol

Differential Revision: D31170304

fbshipit-source-id: ee56312b5262247bb5a2e68a66d51f6cb3a0bf82
2021-09-24 09:03:29 -07:00
04ccd3ed77 Fix bazel dependencies (#43688)
Summary:
Add `header_template_rule` to `substitution.bzl`
Use it in BUILD.bazel to specify dependencies on autogenerated headers

Pull Request resolved: https://github.com/pytorch/pytorch/pull/43688

Test Plan: bazel build --sandbox_writable_path=$HOME/.ccache -c dbg :caffe2

Reviewed By: seemethere

Differential Revision: D23374702

Pulled By: malfet

fbshipit-source-id: 180dd996d1382df86258bb6abab9f2c7e964152e
2020-08-27 12:11:34 -07:00
447bcd341d Bazel build of pytorch with gating CI (#36011)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/36011

Differential Revision: D20873430

Pulled By: malfet

fbshipit-source-id: 8ffffd10ca0ff8bdab578a70a9b2b777aed985d0
2020-04-06 22:50:33 -07:00