[nativert] Move ParallelGraphExecutor to PyTorch core (#156751)

Summary: `ParallelGraphExecutor` inherits from `GraphExecutorBase` and executes all nodes in the graph in a parallel manner

Test Plan:
CI

Rollback Plan:

Differential Revision: D77088996

Pull Request resolved: https://github.com/pytorch/pytorch/pull/156751
Approved by: https://github.com/zhxchen17, https://github.com/dolpm
This commit is contained in:
Sheng Qin
2025-06-25 06:54:41 +00:00
committed by PyTorch MergeBot
parent 44a5f93462
commit 6c008e2fb5
3 changed files with 335 additions and 0 deletions

View File

@ -614,6 +614,7 @@ libtorch_nativert_sources = [
"torch/nativert/kernels/HigherOrderKernel.cpp",
"torch/nativert/executor/memory/GreedyBySize.cpp",
"torch/nativert/executor/memory/Bump.cpp",
"torch/nativert/executor/ParallelGraphExecutor.cpp",
"torch/nativert/kernels/CallTorchBindKernel.cpp",
"torch/nativert/kernels/PrimKernelRegistry.cpp",
]