This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
products:sbc:vim3:npu:npu-performance [2022/09/16 23:12] frank |
products:sbc:vim3:npu:npu-performance [2023/09/12 04:10] (current) sravan [Reload the Driver Module] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== NPU Performance | + | ====== NPU Performance |
| - | ===== Introduction ===== | + | Obtain |
| - | + | ||
| - | Through this document, you can learn how to print out the performance of the NPU. | + | |
| ===== Preparation ===== | ===== Preparation ===== | ||
| Line 9: | 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 |
| ==== Reload the Driver Module ==== | ==== Reload the Driver Module ==== | ||
| Line 22: | Line 20: | ||
| ```shell | ```shell | ||
| - | $ sudo insmod / | + | $ sudo insmod / |
| ``` | ``` | ||
| - | ===== Get Interface Data ===== | + | ==== Set environment variables |
| - | + | ||
| - | ==== Set Environments | + | |
| ```shell | ```shell | ||
| Line 33: | 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 a example | + | Here is a sample using the [[npu-prebuilt-demo-usage| |
| ```shell | ```shell | ||
| Line 83: | Line 81: | ||
| ``` | ``` | ||
| - | ===== Interface Data Description ===== | + | ==== Diagnostic data description |
| - | + | ||
| - | ==== Bandwidth Data Description | + | |
| - | - '' | + | ^ Name ^ Description |
| - | - '' | + | | **TOTAL_READ_BANDWIDTH** | Total read bandwidth |
| - | - '' | + | | **TOTAL_WRITE_BANDWIDTH**| Total write bandwidth |
| - | | + | | **AXI_READ_BANDWIDTH** |
| - | - '' | + | | **AXI_WRITE_BANDWIDTH** |
| - | | + | | **DDR_READ_BANDWIDTH** |
| + | | **DDR_WRITE_BANDWIDTH** | ||
| ==== Calculate Usage Rate ==== | ==== Calculate Usage Rate ==== | ||
| - | - '' | + | * '' |
| - | | + | |
| - | Usage rate =('' | + | Usage rate = ('' |