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

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Block-size Independence of general GPU programs

Nimit Singhania
Research Square
Parallel Computing and Optimization Techniques
preprint

Block-size Independence of general GPU programs

Nimit Singhania
preprint en

Abstract

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.

Research Square
Parallel Computing and Optimization Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon
Block-size Independence of general GPU programs — Nimit Singhania · Research Square (2026) | TGRS Research Map | TGRS