Skip to content

Commit

Permalink
use the shared //tools/codegen:gen in OSS Bazel (pytorch#74471)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: pytorch#74471

ghstack-source-id: 152438662

Test Plan: Rely on CI.

Reviewed By: malfet

Differential Revision: D35011683

fbshipit-source-id: 3729c6c7c1b323e253d9832bb51752af8ae2faa6
(cherry picked from commit 1727d86)
  • Loading branch information
mikey dagitses authored and pytorchmergebot committed Mar 31, 2022
1 parent 785972b commit 40bf3cf
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,6 @@ COMMON_COPTS = [
"-DUSE_CUDNN",
])

# TODO: refactor this into its own library (but how to make
# a binary based off of a module in a library?)
py_binary(
name = "gen",
srcs = ["tools/setup_helpers/gen.py"],
deps = [
"//tools/codegen"
],
)

aten_generation_srcs = ["aten/src/ATen/native/native_functions.yaml"] + glob(["aten/src/ATen/templates/**"])

generated_cpu_cpp = [
Expand Down Expand Up @@ -102,7 +92,7 @@ generate_aten(
aten_ufunc_generated_cuda_sources("aten/src/ATen/{}") +
["aten/src/ATen/Declarations.yaml"]
),
generator=":gen",
generator = "//tools/codegen:gen",
)

py_library(
Expand Down

0 comments on commit 40bf3cf

Please sign in to comment.