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 |
|
All Modules |
A Bitmask specifying Habana PyTorch Bridge module to enable logging.
|
Habana PyTorch Bridge Modules |
|
1 |
A Bitmask specifying Habana PyTorch Bridge logging level from SynapseAI and perf_lib.
|
Habana PyTorch Bridge |
|
False |
If set to |
SynapseAI |
|
5 |
Logging level from SynapseAI and perf_lib.
By default, logs are placed either in the console
(if |
SynapseAI |
|
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 |
|
True |
If set to True, the directory provided in
|
Habana PyTorch Bridge |
|
INT64_MAX |
Limits internal graph size to specified number of ops Reduces the lazy mode memory overhead. This will be improved in future releases. Note: This may affect performance. |
Habana PyTorch Bridge |
|
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 |
|
False |
Enables fix for memcopy and concat operations. Memcopy will be treated as in-place and concat will correctly add control edges. Enabling this flag could negatively impact performance. |
Habana PyTorch Bridge |
|
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 |