Method, device and electronic device for calling kernel function by Triton operator
By building a new Triton runtime structure, using LibEntry to reduce parameter processing time and optimize multi-core operator parameters through global tuning, the problem of high CPU time-consuming for Triton operators is solved, and significant time overhead reduction and computational efficiency improvement is achieved.
Patent Information
- Application Number
- CN202411833387.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-13
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2044-12-13
AI Technical Summary
The Triton operator takes a lot of time on the CPU, especially when the tensor size is small. The main reason is that the time overhead of Triton runtime is high, and the non-essential behavior of JITFunction at runtime increases CPU time.
Build a new runtime structure, including the decorator JITFunction and LibEntry. LibEntry only captures some of the parameters passed by the user at runtime, reduces parameter processing time, and adjusts the parameters of multi-core operators through global tuning to optimize the compilation and calling process of kernel functions.
The end-to-end time overhead is reduced when kernel function calls, especially in small-scale function calls, the time overhead can be reduced by about 70%. At the same time, the parameter tuning space of multi-core operators is expanded, the freedom of configuration parameters is improved, and the computing efficiency is improved.