Volatile global and initcheck tool

Vectorizer
Tue, 21 Oct 2025 17:51:29 +0000
Compute Sanitizer

–tool initcheck reports " Uninitialized __global__ memory read of size 8 bytes" when reading from a volatile global variable.
The kernel spins until that data is available therefore volatile global is needed.

For some perspective this is an attempt at Merrill and Garland’s Decoupled Lookback implementation of prefix scan.

5 posts - 3 participants