Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:vim3:npu:npu-performance

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
products:sbc:vim3:npu:npu-performance [2023/09/12 03:55]
sravan [Introduction]
products:sbc:vim3:npu:npu-performance [2023/09/12 04:07]
sravan
Line 1: Line 1:
 ====== NPU Performance Analysis ====== ====== NPU Performance Analysis ======
  
-Obtain NPU performance diagnostic and understand performance metrics.+Obtain NPU performance diagnostics and understand performance metrics.
  
 ===== Preparation ===== ===== Preparation =====
Line 7: Line 7:
 ==== Upgrade The System ==== ==== Upgrade The System ====
  
-Please refer to [[../install-os/boot-into-upgrade-mode|Boot into Upgrade Mode]].+Please refer to the [[../configurations/upgrade-system upgrade guide]].
  
 ==== Reload the Driver Module ==== ==== Reload the Driver Module ====
Line 23: Line 23:
 ``` ```
  
-===== Get Interface Data ===== +==== Set environment variables ====
- +
-==== Set Environments ====+
  
 ```shell ```shell
Line 31: Line 29:
 $ export VIV_VX_DEBUG_LEVEL=1 $ export VIV_VX_DEBUG_LEVEL=1
 ``` ```
 +
 +===== Fetch diagnostic data of the NPU =====
  
 ==== Run Model ==== ==== Run Model ====
  
-Use inception as example [[npu-prebuilt-demo-usage|Get NPU Demo]].+Here is sample using the [[npu-prebuilt-demo-usage| inception example]] to run on the NPU.
  
 ```shell ```shell
Line 81: Line 81:
 ``` ```
  
-===== Interface Data Description ===== +==== Diagnostic data description ====
- +
-==== Bandwidth Data Description ====+
  
-  - ''TOTAL_READ_BANDWIDTH''    : Total read bandwidth +^ Name                   ^ Description            ^ 
-  - ''TOTAL_WRITE_BANDWIDTH''   : Total write bandwidth +| **TOTAL_READ_BANDWIDTH** | Total read bandwidth  | 
-  - ''AXI_READ_BANDWIDTH''      : AXI_SRAM read bandwidth +| **TOTAL_WRITE_BANDWIDTH**| Total write bandwidth | 
-  - ''AXI_READ_BANDWIDTH''      : AXI_SRAM write bandwidth +| **AXI_READ_BANDWIDTH**   AXI_SRAM read bandwidth| 
-  - ''DDR_READ_BANDWIDTH''      : DDR read bandwidth +| **AXI_WRITE_BANDWIDTH**  AXI_SRAM write bandwidth| 
-  - ''DDR_WRITE_BANDWIDTH''     : DDR write bandwidth+| **DDR_READ_BANDWIDTH**   DDR read bandwidth    | 
 +| **DDR_WRITE_BANDWIDTH**  DDR write bandwidth   |
  
 ==== Calculate Usage Rate ==== ==== Calculate Usage Rate ====
  
-  - ''GPUTOTALCYCLES''     : Total number of cycles. +    * ''GPUTOTALCYCLES''     : Total number of cycles. 
-  ''GPUIDLECYCLES''      : Number of cycles in idle state.+    ''GPUIDLECYCLES''      : Number of cycles in idle state.
  
-Usage rate =(''GPUTOTALCYCLES''-''GPUIDLECYCLES'')/''GPUTOTALCYCLES''.+Usage rate = (''GPUTOTALCYCLES''-''GPUIDLECYCLES'')/''GPUTOTALCYCLES''.
  
  
Last modified: 2023/09/12 04:10 by sravan