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 multi-thread build 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

Applicable Models

All processors