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 the value is less than or equal to 0, 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 training products

Atlas inference products

Atlas A2 training products/Atlas A2 inference products

Atlas A3 training products/Atlas A3 inference products

Atlas 200I/500 A2 inference products