How do I identify physical cores vs logical?

Cobs

Honorable
Jul 25, 2013
2
0
10,510
cpu.jpg


I have an intel i3220 3.3 Ghz that has 2 physical cores and hyper threading. This image is from my resource monitor. I want to know how to tell which ones are the physical cores so I can play around with the CPU affinity in RadeonPro to see what works best.

cpu2.jpg


 
Solution
The best way to do it is just to benchmark it.

Write any trivial program that uses 2 threads. Then bind the threads to two cores. If the performance drops significantly between a pair of cores versus another pair, then you know those two cores are on the same physical core.

I would trust a benchmark like this over whatever anything else tells you.

In Windows, the logical/physical cores are interleaved. Cores 0,1 are on the same physical core. Cores 2,3 are on the same... Cores 4,5 are on the same... etc...
The best way to do it is just to benchmark it.

Write any trivial program that uses 2 threads. Then bind the threads to two cores. If the performance drops significantly between a pair of cores versus another pair, then you know those two cores are on the same physical core.

I would trust a benchmark like this over whatever anything else tells you.

In Windows, the logical/physical cores are interleaved. Cores 0,1 are on the same physical core. Cores 2,3 are on the same... Cores 4,5 are on the same... etc...
 
Solution