Memory-Bound Ops: Low Data Reuse Bottleneck
Deep learning operations that exhibit low data reuse, such as element-wise operations and sparse tensor computations, are often memory-bound, meaning their performance is bottlenecked by the speed of memory access rather than computational throughput.
The top 3
- Top 3 Tensor Operations Most Memory-Bound by Low Reuse: Element-wise operations on large tensors, gather/scatter operations, and sparse matrix-vector products frequently become memory-bound due to extensive data movement and minimal data reuse per element.
- Top 3 Memory Access Patterns That Kill Data Reuse: Random access patterns, streaming data (read-once, write-once), and large-stride strided access are key culprits in preventing effective cache utilization and data reuse.
- Top 3 Techniques to Mitigate Low Data Reuse Bottlenecks: Cache tiling (blocking), data layout transformations (e.g., Array of Structs to Struct of Arrays or vice versa), and loop fusion are critical strategies to improve data locality and reuse for memory-bound computations.
Sources
Open the full topic