MAX_COMPILE_CORE_NUMBER

Description

Specifies the number of CPU cores available for graph build.

This environment variable must be set to an integer, indicating that multiple threads are enabled during graph build. The number of threads is the same as the number of CPU cores.

The value ranges from 1 to the number of CPU cores. The default value is 1, indicating that the multi-thread function is disabled. If other abnormal values are configured, the default value 1 is used.

It is recommended that the value of this environment variable be less than or equal to the number of CPU cores in the current environment. Otherwise, the performance deteriorates.

Example

export MAX_COMPILE_CORE_NUMBER=5

Applicability

Atlas 200/300/500 Inference Product

Atlas Training Series Product