I am using Intel i7-7700K with Hyperthreading enabled.
Is there a way to correctly set MKL environment in the KMP_AFFINITY so that the topology looks like:
socket number = physical core with 1 thread per core.
You may set KMP_AFFINITY=granularity=fine,compact,1,0
please see MKL developer guide to view the details: https://software.intel.com/en-us/mkl-macos-developer-guide-using-intel-hyper-threading-technology