Efficient Sequentially-Addressed Calculating Tree: A Bank-Conflict-Free Technique for Parallel Scan Algorithm
Explore RepositoryIn parallel computing, a scan (also known as prefix sum) is an operation that computes all the partial results of applying a binary associative operator \( \oplus \) over a sequence. Scans are widely used in algorithms for efficient data parallelism, sorting, stream compaction, and other GPU-accelerated computations.
Computes the combination of elements up to and including the current index.
Computes the combination of elements up to, but not including, the current index. The first element is set to the identity of \( \oplus \).
Suppose we have the array:
Inclusive Scan (sum operation):
Exclusive Scan (sum operation):
ESACT introduces a novel index permutation scheme (\( \Omega_n\)) that transforms traditional interleaved memory access patterns into sequential patterns, eliminating shared memory bank conflicts while maintaining global memory coalescing.
The recursive permutation formula enables conflict-free access:
| Metric | ESACT | Blelloch | Padded Blelloch |
|---|---|---|---|
| Bank Conflict Factor (β) | 1.0 | 32.0 | 1.0 |
| Memory Overhead | 0% | 0% | 12.5% |
| Throughput (RTX 3060) | 4.17μs | 5.31μs | 4.48μs |
Input: \( X \in \mathbb{R}^n \), located at global memory
Output: \( Y \in \mathbb{R}^n \), located at global memory
Shared Memory: \( S \)
Exclusive scan:
Inclusive scan:
Input: \( X \in \mathbb{R}^n \), located at global memory
Output: \( Y \in \mathbb{R}^n \), located at global memory
Shared Memory: \( S \)
Exclusive scan:
Inclusive scan: