Open
Description
🚀 The feature, motivation and pitch
Now we have so many executor runner targets, one for each backend. We should use a main one, and the link backends.
If you look at https://github.com/search?q=repo%3Apytorch%2Fexecutorch+executor_runner+language%3ACMake&type=code&l=CMake you will see we have quite a few add_executable(xyz_executor_runner ...)
Often they contain the same source as the main executor runner:
Lines 765 to 775 in df8fc61
and the difference is they link to the different library.
In this code, we can see for XNNPACK, we can link to it
Lines 786 to 788 in df8fc61
Just do the similar stuff for all backends
- qualcomm
- arm
- vulkan
- openvino
- mediatek
- coreml
- mps
After that, can we remove the extra xyz_executor_runner?
- qualcomm_
- arm_
- vulkan_
- openvino_
- mediatek_
- coreml_
- mps_
- xnnpack_
Alternatives
No response
Additional context
No response
RFC (Optional)
No response
Metadata
Metadata
Assignees
Type
Projects
Status
No status