Block-size Independence of general GPU programs
GPU programming has gained wide-spread adoption owing to its applicability to AI, block-chain and bioinformatics. The GPU architecture is variable across vendors and requires programs to be tuned to a specific platform. The tuning is valid if the program functionality is not impacted. This work presents analysis to prove \emph{independence} of programs from tuning block-size which controls the number of threads that are scheduled per GPU core. The analysis works for general programs that allow sharing of data between threads and iterate over threads within a block or blocks over a grid, accumulating data in local and global variables. The analysis tracks global context for shared memory accesses in closures, thereby enabling shared accesses to be mapped back to global accesses. It further tracks data-flow and control-flow of block-size dependent loops via loop iterators and loop iterator sets, and accumulations in loops via accumulation tuples. A manual analysis on benchmarks from Rodinia and Nvidia CUDA SDK 8.0 shows that this approach is applicable to common GPU programs and can be used to establish block-size independence.
Authors
- Nimit Singhania (ORCID: https://orcid.org/0000-0003-1345-0505)
Publication Details
- Journal
- Research Square
- Published
- 2026-12-01
- DOI
- https://doi.org/10.21203/rs.3.rs-11471910/v1
- Primary Topic
- Parallel Computing and Optimization Techniques
- Type
- preprint