Software Archive
Read-only legacy content

proc_bind

Jen_B_
Beginner
548 Views

I specify for example my env variables as follows: "mic_kmp_place_threads=Xc,1t", "mic_omp_num_threads=X", "mic_kmp_affinity=scatter". I keep X smaller than available cores on mic.

1) Would there be any difference if I set my "mic_omp_proc_bind" to spread or close?

2) Also are there any documentation on "mic_omp_proc_bind"?

0 Kudos
2 Replies
TimP
Honored Contributor III
548 Views

In offload, by default, one of the physical cores is unavailable (reserved for system).

As far as I could see (e.g. by setting mic_kmp_affinity=verbose), mic_kmp_affinity=scatter is the same as mic_omp_proc_bind=spread, but when you have both set, omp_proc_bind may be ignored.  If you don't set num_threads to a different value than what was set by kmp_place_threads, I doubt there is a difference between spread and close.

0 Kudos
Jen_B_
Beginner
548 Views

Thanks!

0 Kudos
Reply