[aot_inductor] move CudaWrapperCodeGen into a separate file (#119870)

This reverts commit 3ab08946d5052eaeda11d683d6a58e801a032755.

Differential Revision: [D53817852](https://our.internmc.facebook.com/intern/diff/D53817852)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/119870
Approved by: https://github.com/khabinov
This commit is contained in:
Yang Chen
2024-02-15 14:43:36 -08:00
committed by PyTorch MergeBot
parent 8f9f12c068
commit 78c9b2948a
4 changed files with 306 additions and 290 deletions

View File

@ -200,7 +200,10 @@ hipify_python.hipify(
output_directory=out_dir,
includes=includes,
ignores=ignores,
extra_files=["torch/_inductor/codegen/wrapper.py"],
extra_files=[
"torch/_inductor/codegen/cpp_wrapper_cuda.py",
"torch/_inductor/codegen/wrapper.py",
],
out_of_place_only=args.out_of_place_only,
hip_clang_launch=is_hip_clang(),
)