title: CUDA C++ How to programs to benchmark shared memory bandwidth?
body: <p>I'm looking for a way to benchmark shared mem and L1/L2 cache. However, the benchmark results I found are very different depending on the source.</p>
  <p>In this paper, <a href="https://arxiv.org/pdf/1804.06826.pdf" rel="nofollow noreferrer">Dissecting the NVIDIA Volta GPU Architecture via Microbenchmarking</a>, they show shared memory bandwidth to be 12000GB/s on Tesla V100, but they don't provide how they reached that number. If I use <a href="https://github.com/ekondis/gpumembench" rel="nofollow noreferrer">gpumembench</a> on a NVIDIA A30, I only get ~5000GB/s.</p>
  <p>Is there any other sample programs I can use to benchmark shared memory?</p>