How to get cpu/core/thread id of logic processor on ia64

How to get cpu/core/thread id of logic processor on ia64

Hi all

I'm working on ia64 platform. I want to get a logic processor's corresponding physical cpu id, core id and thread id (if applicable). For example, given logic processor 0, return its physical cpu id 0, core id 0 and thread id 0.

On x86/x86_64, we can use cpuid instruction (type 2) to get above information. But I don't know how to do similar thing on ia64.

Can anybody give me some hints?

Thank you very much.

Huaifeng

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.