Parallel Paths: From SIMD Lanes to Memory Highways in C++
summary
Covers concrete SIMD routes: hand-written assembly, compiler intrinsics, and C++26 std::simd, plus auto-vectorization with compiler flags and runtime CPU feature checks. Shows microbenchmarks for array max: AVX2 gives modest ~2x vs scalar, AVX512 speedup is substantially larger but CPU-dependent. Demonstrates memory-level parallelism by batching pointer lookups with prefetches and cache flush benchmarks, hitting 1.65x MLP gain at a block size of eight. Code and benchmarks exist in a forthcoming repo.
AI-written summary · about
chapters (11)
- 0:00Introduction and setup
- 1:28SIMD basics and hardware parallelism
- 7:23Finding maximum with SIMD
- 16:43Compiler intrinsics and C++26 std::simd
- 23:20Compiler hints and portability
- 24:50AVX-512 and runtime checks
- 27:48Benchmarking SIMD performance
- 30:19Memory parallelism introduction
- 31:27Pointer chasing benchmark
- 35:56Block-based memory access
- 37:25Summary and conclusions
