OMP_PROC_BIND – Whether theads may be moved between CPUs¶
Description:Specifies whether threads may be moved between processors. If set to
TRUE, OpenMP theads should not be moved; if set toFALSEthey may be moved. Alternatively, a comma separated list with the valuesMASTER,CLOSEandSPREADcan be used to specify the thread affinity policy for the corresponding nesting level. WithMASTERthe worker threads are in the same place partition as the master thread. WithCLOSEthose are kept close to the master thread in contiguous place partitions. And withSPREADa sparse distribution across the place partitions is used. Specifying more than one item in the list will automatically enable nesting by default.When undefined,
OMP_PROC_BINDdefaults toTRUEwhenOMP_PLACESorGOMP_CPU_AFFINITYis set andFALSEotherwise.See also:omp_get_proc_bind, GOMP_CPU_AFFINITY, OMP_NESTED, OMP_PLACES
Reference:OpenMP specification v4.5, Section 4.4