Intel® oneAPI DPC++/C++ Compiler
Talk to fellow users of Intel® oneAPI DPC++/C++ Compiler and companion tools like Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and Intel® Distribution for GDB*

Thread Affinity

toddwz
Beginner
335 Views

I have 2 questions when reading https://www.intel.com/content/www/us/en/docs/dpcpp-cpp-compiler/developer-guide-reference/2024-2/thread-affinity-interface.html.

1 It says 

Binding OpenMP threads to particular packages and cores will often result in a performance gain on systems with Intel processors with Intel® Hyper-Threading Technology (Intel® HT Technology) enabled; however, it is usually not beneficial to bind each OpenMP thread to a particular thread context on a specific core.

Is binding beneficial or not?

2 Specifying KMP_AFFINITY=verbose,granularity=core,compact, it shows 

KMP_AFFINITY: OS proc 0 maps to socket 0 core 0 thread 0 
KMP_AFFINITY: OS proc 4 maps to socket 0 core 0 thread 1 
KMP_AFFINITY: OS proc 2 maps to socket 0 core 1 thread 0 
KMP_AFFINITY: OS proc 6 maps to socket 0 core 1 thread 1 
KMP_AFFINITY: OS proc 1 maps to socket 3 core 0 thread 0 
KMP_AFFINITY: OS proc 5 maps to socket 3 core 0 thread 1 
KMP_AFFINITY: OS proc 3 maps to socket 3 core 1 thread 0 
KMP_AFFINITY: OS proc 7 maps to socket 3 core 1 thread 1 

Should proc 1 map to  socket 0 core 1 thread 0?

Thanks.

0 Kudos
1 Reply
Alex_Y_Intel
Moderator
282 Views

Escalated your issue for further investigation. 

0 Kudos
Reply