pytorch/torch/csrc/jit/python
Jie 2b79bab029 [CUDA_FUSER] Fork CUDA fuser (#33527)
Summary:
Separating CUDA fuser from CPU fuser.

1. New node in IR - prim::CudaFusionGroup:
   This enables the cuda fuser to co-exist along side the old fuser. Allows us
   to incrementally build and expand cuda fuser.

2. copied FuseGraph optimization passes to CudaFuserGraph:
   We will re-factor & reuse Chunk/Concat in the old fuser logic, which is
   handled in the optimization pass at this moment. Unfortunately many code in
   the pass is tightly binded with the legacy fuser, which makes code sharing
   difficult.
   The CudaFusionGraph will support only a subset of operations comparing to
   legacy fuser (CUDA only). It is registered as a custom pass post fusion via
     ```torch._C._jit_register_cuda_fuser()```
   To have it in effect, you should also turn off fusion on GPU via
     ```torch._C._jit_override_can_fuse_on_gpu(False)```

3. We don't have codegen in this PR yet (WIP). Currently we just fall back to
   the old fuser.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/33527

Differential Revision: D20171598

Pulled By: ZolotukhinM

fbshipit-source-id: 9a3c0f06f46da7eaa80ae7551c04869f5b03ef71
2020-03-04 20:25:08 -08:00
..
init.cpp [CUDA_FUSER] Fork CUDA fuser (#33527) 2020-03-04 20:25:08 -08:00
init.h
module_python.h
pybind_utils.h [resubmit] try to infer rref type from python (#33992) 2020-02-29 20:26:40 -08:00
pybind.h
python_arg_flatten.cpp
python_arg_flatten.h
python_custom_class.cpp
python_custom_class.h
python_interpreter.cpp
python_ir.cpp [CUDA_FUSER] Fork CUDA fuser (#33527) 2020-03-04 20:25:08 -08:00
python_ir.h
python_ivalue.h
python_sugared_value.cpp [JIT] Register rpc.rpc_async(..) as a JIT operator (#33329) 2020-03-03 19:57:42 -08:00
python_sugared_value.h [JIT] Add modulelist indexing for integer literal (#29236) 2020-03-03 14:47:31 -08:00
python_tracer.cpp
python_tracer.h
python_tree_views.cpp
python_tree_views.h
script_init.cpp [jit] Resolve type annotation names to types (#29623) 2020-02-28 18:35:10 -08:00
script_init.h
update_graph_executor_opt.cpp
update_graph_executor_opt.h