Skip to content

Commit

Permalink
Update gen.py aoti_fm install dir (pytorch#125087)
Browse files Browse the repository at this point in the history
Summary: make it consistent with all the other install dir

Test Plan: Sandcastle

Differential Revision: D56660301

Pull Request resolved: pytorch#125087
Approved by: https://github.com/frank-wei
  • Loading branch information
hl475 authored and petrex committed May 3, 2024
1 parent c0d40ac commit daaf067
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions torchgen/gen.py
Expand Up @@ -2710,6 +2710,12 @@ def main() -> None:
help="output directory",
default="build/aten/src/ATen",
)
parser.add_argument(
"--aoti-install-dir",
"--aoti_install_dir",
help="output directory for AOTInductor shim",
default="torch/csrc/inductor/aoti_torch/generated",
)
parser.add_argument(
"--rocm",
action="store_true",
Expand Down Expand Up @@ -2830,15 +2836,15 @@ def main() -> None:
pathlib.Path(core_install_dir).mkdir(parents=True, exist_ok=True)
ops_install_dir = f"{options.install_dir}/ops"
pathlib.Path(ops_install_dir).mkdir(parents=True, exist_ok=True)
aoti_install_dir = f"{options.aoti_install_dir}"
pathlib.Path(aoti_install_dir).mkdir(parents=True, exist_ok=True)

core_fm = make_file_manager(options=options, install_dir=core_install_dir)
cpu_fm = make_file_manager(options=options)
cpu_vec_fm = make_file_manager(options=options)
cuda_fm = make_file_manager(options=options)
ops_fm = make_file_manager(options=options, install_dir=ops_install_dir)
aoti_fm = make_file_manager(
options=options, install_dir="torch/csrc/inductor/aoti_torch/generated"
)
aoti_fm = make_file_manager(options=options, install_dir=aoti_install_dir)

# Only a limited set of dispatch keys get CPUFunctions.h headers generated
# for them; this is the set
Expand Down

0 comments on commit daaf067

Please sign in to comment.