title: Opengl: Maximum shared memory size smaller than hardware specification
body: <p>If I query the maximum compute shader shared memory size with:</p>
  
  <pre><code>GLint maximum_shared_mem_size;
  glGetIntegerv(GL_MAX_COMPUTE_SHARED_MEMORY_SIZE, &amp;maximum_shared_mem_size);
  </code></pre>
  
  <p>I get 48KB as a result. However, according to this whitepaper:
  <a href="https://www.nvidia.com/content/dam/en-zz/Solutions/design-visualization/technologies/turing-architecture/NVIDIA-Turing-Architecture-Whitepaper.pdf" rel="nofollow noreferrer">https://www.nvidia.com/content/dam/en-zz/Solutions/design-visualization/technologies/turing-architecture/NVIDIA-Turing-Architecture-Whitepaper.pdf</a></p>
  
  <p>on page 13, it is stated, that for my GPU (2080TI):</p>
  
  <blockquote>
    <p>The Turing L1 can be as large as 64 KB in size, combined with a 32 KB per SM shared memory allocation, or it can reduce to 32 KB, allowing 64 KB of allocation to be used for shared memory. Turing’s L2 cache capacity has also been increased.</p>
  </blockquote>
  
  <p>So, I expect OpenGL to return 64KB for the maximum shared memory size.
  Is this a wrong assumption? If so, why?</p>