Regarding Intel processors, you can:
look in this intel documentation manual chapter 18, but it's not so easy to read.
use the
cpuid
instruction - This will require to write assembly code to correctly set parameters and get results.download and compile/install the papi library and run
papi_avail | more
. The result on my laptop is:
PAPI Version : 5.1.1.0
Vendor string and code : GenuineIntel (1)
Model string and code : Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz (42)
CPU Revision : 7.000000
CPUID Info : Family: 6 Model: 42 Stepping: 7
CPU Max Megahertz : 2494
CPU Min Megahertz : 2494
Hdw Threads per core : 2
Cores per Socket : 2
NUMA Nodes : 1
CPUs per Node : 4
Total CPUs : 4
Running in a VM : no
Number Hardware Counters : 11
Max Multiplex Counters : 64