8000 gen_aten output into aten/src/ATen/ · pytorch/pytorch@c7d8b88 · GitHub 8000
[go: up one dir, main page]

Skip to content

Commit c7d8b88

Browse files
author
Michael Andreas Dagitses
committed
gen_aten output into aten/src/ATen/
Pull Request resolved: #77773 This is more natural for the Bazel build. ghstack-source-id: 156697863 Differential Revision: [D36487559](https://our.internmc.facebook.com/intern/diff/D36487559/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D36487559/)!
1 parent 7f51a88 commit c7d8b88

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

build.bzl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def define_targets(rules):
4747

4848
gen_aten_cmd = " ".join([
4949
"$(location //torchgen:gen)",
50-
"--install_dir=$(RULEDIR)",
50+
"--install_dir=$(RULEDIR)/aten/src/ATen/",
5151
"--source-path aten/src/ATen",
5252
] + (["--static_dispatch_backend CPU"] if rules.is_cpu_static_dispatch_build() else []))
5353

@@ -69,15 +69,18 @@ def define_targets(rules):
6969
name = "gen_aten",
7070
srcs = gen_aten_srcs,
7171
tools = ["//torchgen:gen"],
72-
outs = gen_aten_outs,
72+
outs = ["aten/src/ATen/" + out for out in gen_aten_outs],
7373
cmd = gen_aten_cmd,
74+
# This currently clashes with the existing Bazel generated
75+
# files.
76+
tags = ["-bazel"],
7477
)
7578

7679
rules.genrule(
7780
name = "gen_aten_hip",
7881
srcs = gen_aten_srcs,
7982
tools = ["//torchgen:gen"],
80-
outs = gen_aten_outs_cuda,
83+
outs = ["aten/src/ATen/" + out for out in gen_aten_outs_cuda],
8184
cmd = gen_aten_cmd + " --rocm",
8285
features = ["-create_bazel_outputs"],
8386
tags = ["-bazel"],

0 commit comments

Comments
 (0)
0