-
-
Notifications
You must be signed in to change notification settings - Fork 33.3k
Closed
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)performancePerformance or resource usagePerformance or resource usage
Description
Our plan proposes that we either execute all tier 2 code in the tier 2 interpreter or by jitting the code
However, our current executor interface allows calls to arbitrary function pointers.
We should remove that interface, requiring all optimizers to produce tier 2 micro-ops, which the VM is responsible for executing.
This will prevent low-level JITs like Cinder from using executors, but Cinder uses PyFunction_SetVectorcall to insert machine code anyway.
Higher level JITs like PyTorch dynamo, can potentially still use executors, as they provide a more powerful and flexible interface than PEP 523.
Linked PRs
stonebig, network-shark and tusharsadhwani
Metadata
Metadata
Assignees
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)performancePerformance or resource usagePerformance or resource usage