一种基于掩码机制的非对称填充与卷积的算子融合优化方法及系统

By fusing asymmetric padding and convolution operators into a single kernel on a GPGPU, and utilizing masking mechanisms and Triton auto-tuning, the performance bottleneck of asymmetric padding and convolution on GPGPU is solved, thereby improving the model's performance and efficiency.

CN121121373BActive Publication Date: 2026-07-17HARBIN INST OF TECH

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HARBIN INST OF TECH
Filing Date
2025-09-08
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

The independent computation of asymmetric padding and convolution at the GPGPU level leads to excessive memory consumption and data transfer overhead, becoming a performance bottleneck for deep learning models, especially in applications that process high-resolution images or real-time video streams.

Method used

By using a masking mechanism to integrate asymmetric padding and convolution operators into a single kernel, the computation graph is optimized using the masking mechanism, achieving end-to-end collaborative optimization, reducing memory bandwidth overhead and kernel startup times, and combining Triton's automatic tuning capabilities to automatically adapt to hardware and input parameters.

Benefits of technology

It significantly reduces global memory access traffic on GPGPUs, lowers CPU overhead and synchronization latency, improves model inference throughput and reduces latency, and adapts to diverse GPGPU deployment environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121121373B_ABST
    Figure CN121121373B_ABST
Patent Text Reader

Abstract

一种基于掩码机制的非对称填充与卷积的算子融合优化方法及系统,属于通用图形处理器性能优化技术领域。为解决将高层计算图中的算子融合技术与底层核函数内的掩码机制进行深度结合的问题。本发明定义包含填充和卷积计算模式的Pytorch原始模型,得到计算图;触发基于Pytorch的图优化算子融合方法,包括遍历计算图进行模式匹配,对成功匹配模式的计算图进行图重写,使用融合算子节点替换计算图中的原始算子节点,得到优化后的计算图;基于掩码机制的非对称填充卷积调用融合算子,对优化后的计算图中的融合节点进行更新,得到基于掩码机制的非对称填充与卷积的算子融合优化后的计算图,优化GPGPU上部分场景下推理的性能。
Need to check novelty before this filing date? Find Prior Art