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

Skip to content

Commit 31860ef

Browse files
author
Michael Andreas Dagitses
committed
gen_aten output into aten/src/ATen/
This is more natural for the Bazel build. 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/)! [ghstack-poisoned]
1 parent acd0729 commit 31860ef

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
"$(execpath //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