arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.25422cs.DCcs.SYeess.SY
收藏

CUDA内核优化与无计数器性能分析用于云计算环境中的深度卷积

CUDA Kernel Optimization and Counter-Free Performance Analysis for Depthwise Convolution in Cloud Environments

Leibniz University Hannover(汉诺威莱布尼茨大学);Institute for Information Processing (TNT)(信息处理研究所);L3S Research Center(L3S研究中心)

Huriyeh Babak, Melanie Schaller

AI总结:

本文研究了CUDA内核优化对深度卷积性能的影响,提出了一种无需硬件计数器的云环境性能分析方法,通过对比不同内核实现,发现 warp-tiled 内核在运行时和端到端训练速度上有显著提升。

摘要:

高效的GPU卷积运算受内存访问效率、芯片内数据重用和执行映射等因素影响,而非单纯算术吞吐量。本文提出了一种受控的操作级研究,探讨CUDA内核优化在结构状态空间模型卷积对角(S4ConvD)中的深度卷积应用,并提出一种云兼容、无计数器的性能分析方法。操作、模型、数据集和训练配置固定,仅改变CUDA内核实现。评估的CUDA内核包括朴素、全局内存合并、共享内存缓存块和 warp-tiling 变体,覆盖稳态训练条件下的前向、输入梯度和权重梯度执行路径。性能通过结合CUDA事件计时、执行路径分解、解析内存流量建模、有效带宽估计和屋顶线分析的无计数器方法进行表征。这使在不需硬件性能计数器或特权剖析访问的情况下获得类似剖析的架构洞察。warp-tiling内核相比朴素CUDA基准减少了3.26倍的卷积运行时间,而端到端训练速度提高了1.29倍。使用PyTorch进行数值验证和运行时上下文,但不视为受控架构基准。前向和输入梯度路径显著受益于改进的局部性和芯片内数据重用,而减少主导的权重梯度路径仍然是主要瓶颈。结果表明,在没有硬件性能计数器访问的情况下,可以在受限的云环境中进行有意义的GPU内核架构分析。

英文摘要:

Efficient GPU execution of convolution operators is governed by memory-access efficiency, on-chip data reuse, and execution mapping rather than arithmetic throughput alone. This paper presents a controlled operator-level study of CUDA kernel optimization for the depthwise convolution used in Structured State Space Model Convolutional Diagonal (S4ConvD), together with a cloud-compatible, counter-free performance analysis methodology. The operator, model, dataset, and training configuration are fixed, and only the CUDA kernel implementation is varied. The evaluated CUDA kernels comprise naive, global-memory-coalesced, shared-memory cache-blocked, and warp-tiled variants, covering forward, input-gradient, and weight-gradient execution paths under steady-state training conditions. Performance is characterized using a counter-free methodology that combines CUDA-event timing, execution-path decomposition, analytically derived memory-traffic modeling, effective-bandwidth estimation, and roofline analysis. This enables profiling-like architectural insights without requiring hardware performance counters or privileged profiling access. The warp-tiled kernel reduces convolution runtime by $3.26\times$ relative to the naive CUDA baseline, while end-to-end training speedup reaches $1.29\times$. A PyTorch implementation is used separately for numerical validation and runtime context, but is not treated as a controlled architectural baseline. Forward and input-gradient paths benefit substantially from improved locality and on-chip data reuse, whereas the reduction-dominated weight-gradient path remains the primary bottleneck. The results demonstrate that meaningful architecture-level GPU kernel analysis can be performed reproducibly in restricted cloud environments, even without access to hardware performance counters.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑