Stream-K++: 基于布隆过滤器的自适应GPU GEMM内核调度与选择
Stream-K++: Adaptive GPU GEMM Kernel Scheduling and Selection using Bloom Filters
AI总结:
Stream-K++通过布隆过滤器实现自适应GPU GEMM内核调度与选择,显著提升性能并保持高准确性。
摘要:
通用矩阵乘法(GEMM)操作是人工智能(AI)等计算领域的基本构建块。随着GPU架构的发展和高性能AI日益重要,优化GEMM性能成为需要解决的根本问题。本文介绍了Stream-K++,一种改进的Stream-K GEMM调度算法,用于工作负载平衡。我们扩展了Stream-K的调度策略,从三种扩展到七种,并实现了使用布隆过滤器的高效解决方案选择机制。我们的方法能够快速排除多达95.8%的不合适配置,同时保持100%的真阴性率。通过AMD Composable Kernel库实现,并在AMD Instinct MI250X GPU上评估,Stream-K++在某些场景中实现了高达43%的性能提升。在60-97.6%的问题规模中,它仍具有竞争力(与最优方案相差不超过20%)。我们的灵活框架通过Open-sieve C++库实现,可以轻松适应新的问题规模、调度策略或额外的调优参数,为GPU基于GEMM操作的未来优化铺平了道路。
英文摘要:
General matrix multiplication (GEMM) operations are the fundamental building blocks of computational domains including artificial intelligence (AI). As GPU architectures evolve and high-performance AI becomes increasingly important, optimizing GEMM performance becomes a fundamental problem that needs to be addressed. This paper introduces Stream-K++, an enhancement to the promising Stream-K GEMM scheduling algorithm for workload balancing. We expand Stream-K's scheduling policies from three to seven and implement an efficient solution selection mechanism using Bloom filters. Our approach rapidly eliminates up to 95.8% of unsuitable configurations while maintaining a 100% true-negative rate. Implemented using the AMD Composable Kernel library and evaluated on AMD Instinct MI250X GPUs, Stream-K++ demonstrates significant performance gains (up to 43%) in select scenarios. It remains competitive (within 20% of optimal) for 60-97.6% of problem sizes. Our flexible framework, implemented in the Open-sieve C++ library, allows for easy adaptation to new problem sizes, scheduling policies, or additional tuning parameters, paving the way for future optimizations in GPU-based GEMM operations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。