[SWDEV-559082] Add asic info cache (#756)

Signed-off-by: adapryor <Adam.pryor@amd.com>
このコミットが含まれているのは:
Pryor, Adam
2025-10-08 21:48:08 -05:00
committed by GitHub
コミット cba4c871d3
9個のファイルの変更103行の追加5行の削除
+1
ファイルの表示
@@ -87,6 +87,7 @@ Current Variables:
```{note}
AMDSMI_GPU_METRICS_CACHE_MS - Controls the internal GPU metrics cache duration (ms). Default 100, set to 0 to disable.
AMDSMI_ASIC_INFO_CACHE_MS - Controls the internal GPU asic info cache duration (ms). Default 10000, set to 0 to disable.
```
(cmds)=
+6
ファイルの表示
@@ -27,6 +27,12 @@ control the internal GPU metrics cache duration (ms).
Default 1, set to 0 to disable.
```
```{note}
The environment variable ``AMDSMI_ASIC_INFO_CACHE_MS`` may be set to
control the internal GPU asic info cache duration (ms).
Default 10000 ms, set to 0 to disable.
```
```{seealso}
Refer to the [C++ library API reference](../reference/amdsmi-cpp-api.md).
```
+5 -1
ファイルの表示
@@ -44,7 +44,11 @@ The environment variable ``AMDSMI_GPU_METRICS_CACHE_MS`` may be set to
control the internal GPU metrics cache duration (ms).
Default 1, set to 0 to disable.
You can apply it in one of two ways:
The environment variable ``AMDSMI_ASIC_INFO_CACHE_MS`` may be set to
control the internal GPU asic info cache duration (ms).
Default 10000 ms, set to 0 to disable.
You can apply them in one of two ways:
1. In Python code (before the AMDSMI library loads):
```