.. meta::
   :description: ROCm Compute Profiler performance model: Local data share (LDS)
   :keywords: Omniperf, ROCm Compute Profiler, ROCm, profiler, tool, Instinct, accelerator, local, data, share, LDS

**********************
Local data share (LDS)
**********************

.. _lds-sol:

LDS Speed-of-Light
==================

.. warning::

   The theoretical maximum throughput for some metrics in this section are
   currently computed with the maximum achievable clock frequency, as reported
   by ``rocminfo``, for the GPUs. This may not be realistic for all
   workloads.

The :ref:`LDS <desc-lds>` speed-of-light chart shows a number of key metrics for
the LDS as a comparison with the peak achievable values of those metrics.

.. tab-set::

   .. tab-item:: CDNA

      .. jinja:: lds-sol-gfx908
         :file: _templates/metrics_table.j2

   .. tab-item:: CDNA 2

      .. jinja:: lds-sol-gfx90a
         :file: _templates/metrics_table.j2

   .. tab-item:: CDNA 3

      .. jinja:: lds-sol-gfx942
         :file: _templates/metrics_table.j2

   .. tab-item:: CDNA 4
      :selected:

      .. jinja:: lds-sol-gfx950
         :file: _templates/metrics_table.j2

.. rubric:: Footnotes

.. [#lds-workload] Assuming the typical case where the workload evenly distributes
   LDS operations over all SIMDs in a CU, such as, waves on different SIMDs are
   executing similar code). For highly unbalanced workloads, such as, one
   SIMD pair in the CU does not issue LDS instructions at all, this metric is
   better interpreted as the percentage of SIMDs issuing LDS instructions on
   :ref:`SIMD pairs <desc-lds>` that are actively using the LDS, averaged over
   the lifetime of the kernel.

.. [#lds-bank-conflict] The maximum value of the bank conflict rate is less than 100%
   (specifically: 96.875%), as the first cycle in the
   :ref:`LDS scheduler <desc-lds>` is never considered contended.

.. _lds-stats:

Statistics
==========

The LDS statistics panel gives a more detailed view of the hardware:

.. tab-set::

   .. tab-item:: CDNA

      .. jinja:: lds-stats-gfx908
         :file: _templates/metrics_table.j2

   .. tab-item:: CDNA 2

      .. jinja:: lds-stats-gfx90a
         :file: _templates/metrics_table.j2

   .. tab-item:: CDNA 3

      .. jinja:: lds-stats-gfx942
         :file: _templates/metrics_table.j2

   .. tab-item:: CDNA 4
      :selected:

      .. jinja:: lds-stats-gfx950
         :file: _templates/metrics_table.j2
