Runtime Environment Variables
Runtime Environment Variables¶
The following table describes runtime flags that are set in the environment to change the behavior as well as enable or disable some features.
Flag |
Default |
Description |
Consumer |
---|---|---|---|
|
1 |
Controls Execution mode:
|
Habana PyTorch Bridge Modules |
|
False |
Creates of graph visualization files. The output dump graphs are in ./.graph_dumps folder |
SynapseAI |
|
Unset |
Path (directory), where compiled graph recipes are stored to accelerate a scale up scenario. Only one process compiles the recipe, and other processes read it from disk. If unset (default), compiled graph recipes are not stored on disk (recipe disk caching disabled). Note: If a recipe cache is shared among a few processes (scale up), it must be stored on a local physical disk. Avoid using remote drives (such as NFS) where file locks are not supported, as it it may lead to instability and unpredictable behavior. |
Habana PyTorch Bridge Modules |
|
False |
By default ( |
Habana PyTorch Bridge Modules |
|
INT64_MAX |
Limits internal graph size to specified number of opsReduces the lazy mode memory overhead. This will be improved in future releases. Note: This may affect performance. |
Habana PyTorch Bridge Modules |
|
30000 |
If cache evictions cause performance degradation, increasing the cache size will increase performance. The default value is 30000. Note: Boost in performance may cause an increase in host memory consumption. |
Habana PyTorch Bridge Modules |
|
1 |
This flag turns on host time optimization of lazy ops accumulation. It offloads ops accumulation to a separate thread, thus reducing computation time of the main thread. |
Habana PyTorch Bridge Modules |
|
Unset |
Path (file), where the collected metrics are stored.
Metrics are stored in a file only when |
Habana PyTorch Bridge Modules |
|
process_exit |
Once Supported values:
Multiple triggers can be enabled together by separating them with
a comma, for example:
|
Habana PyTorch Bridge Modules |
|
json |
Metrics file format. Both JSON and TEXT formats are supported:
|
Habana PyTorch Bridge Modules |
The following table describes runtime flags that are set in the environment to obtain SynapseAI and PyTorch Habana Bridge level logs.
Flag |
Default |
Description |
Consumer |
---|---|---|---|
|
0 |
A Bitmask specifying components inside Habana PyTorch Bridge module that are allowed to use profilers. Note that certain profilers may require additional environment variables to be set.
|
Habana PyTorch Bridge Modules |
|
False |
If set to |
SynapseAI and Habana PyTorch Bridge |
|
5 |
Logging level from SynapseAI, perf_lib and Habana PyTorch Bridge.
By default, logs are placed either in the console
(if |
SynapseAI and Habana PyTorch Bridge |
|
5 |
Logging level for Habana PyTorch Bridge.
|
Habana PyTorch Bridge |
|
5 |
Logging level for
|
Habana PyTorch Bridge |
|
5 |
Logging level for
|
Habana PyTorch Bridge |
|
5 |
Logging level for
|
Habana PyTorch Bridge |
|
5 |
Logging level for
|
Habana PyTorch Bridge |
|
5 |
Logging level for
|
Habana PyTorch Bridge |
|
5 |
Logging level for
|
Habana PyTorch Bridge |
|
0 |
Logging level for
|
Habana PyTorch Bridge |
|
5 |
Logging level for
|
Habana PyTorch Bridge |
|
5 |
Logging level for
|
Habana PyTorch Bridge |
|
5 |
Logging level for
|
Habana PyTorch Bridge |
|
5 |
Logging level for
|
Habana PyTorch Bridge |
|
5 |
Logging level for
|
Habana PyTorch Bridge |
|
5 |
Logging level for
|
Habana PyTorch Bridge |
|
5 |
Logging level for
|
Habana PyTorch Bridge |
|
5 |
Logging level for
|
Habana PyTorch Bridge |
|
5 |
Logging level for
|
Habana PyTorch Bridge |
|
5 |
Logging level for
|
Habana PyTorch Bridge |
|
5 |
Logging level for
|
Habana PyTorch Bridge |
|
5 |
Logging level for
|
Habana PyTorch Bridge |
|
5 |
Logging level for
|
Habana PyTorch Bridge |
|
5 |
Logging level for
|
Habana PyTorch Bridge |
|
5 |
Logging level for
|
Habana PyTorch Bridge |
|
5 |
Logging level for
|
Habana PyTorch Bridge |
|
5 |
Logging level for
|
Habana PyTorch Bridge |