HWLOC-GATHER-CPUID(1)
π HWLOC-GATHER-CPUID(1) β the hwloc manual page, bestie edition
okay so real quick β this is hwloc-gather-cpuid from the hwloc manual, section 1. if you're on x86 and you want to snoop on your CPU's whole personality, congrats, you're in the right place π
β¨ NAME β¨
hwloc-gather-cpuid β dumps all the relevant x86 cpuid values so you can use them later, possibly even offline π¦
πΈ SYNOPSIS πΈ
hwloc-gather-cpuid [options] [<outdir>]
π OPTIONS π
-c <idx>β only gathercpuidvalues for the logical processor whose OS/physical index is<idx>. one PU only, pick your fave π-q,--quiet,-s,--silentβ do NOT show verbose messages. stealth mode, no yapping π€«--versionβ report the version and dip. that's it, that's the whole job β¨-h,--helpβ display the help message and exit. classic, iconic, helpful π«Ά
π¦ DESCRIPTION π¦
so hwloc-gather-cpuid dumps all the relevant x86 cpuid values into a subdirectory called cpuid inside the current directory β or into <outdir> if you specified one. no cap, that's the whole vibe π
these files are literally made to be used later, so you can explore the machine topology offline. how? for instance by setting the environment variable HWLOC_CPUID_PATH to the directory that contains all the output files, and by forcing the x86 backend with HWLOC_COMPONENTS=x86,stop. iykyk π₯
you can also slide the directory contents to the hwloc developers so they can debug issues remotely. remote debugging era π
if you use - as <outdir>, the output gets dumped to standard output β but a unique logical processor must have been given with -c. like, you have to pick one, no exceptions bestie π
hwloc-gather-cpuid is an x86 specific tool. it cannot be used on other platforms. periodt. π
NOTE: hwloc-gather-cpuid gathers many hardware details about the platform. output files should not be posted on public lists or websites unless it is clear that they contain no sensitive information. seriously, do a vibe check before you post π
NOTE: the output ofhwloc-gather-cpuidis included in the tarball saved byhwloc-gather-topologyon Linux/x86. cute, right? π
NOTE: it is highly recommended that you read the hwloc(7) overview page before reading this man page. homework first, bestie π
π EXAMPLES π
to store cpuid information of all logical processors of the current machine:
$ hwloc-gather-cpuid
Gathering in directory ./cpuid ...
Gathering CPUID of PU P#0 in path ./cpuid/pu0 ...
Gathering CPUID of PU P#1 in path ./cpuid/pu1 ...
Gathering CPUID of PU P#2 in path ./cpuid/pu2 ...
Gathering CPUID of PU P#3 in path ./cpuid/pu3 ...
Summary written to ./cpuid/hwloc-cpuid-info
look at it go, one PU at a time, main character energy π
β RETURN VALUE β
upon successful execution, hwloc-gather-cpuid will exit with the code 0. slay β¨
hwloc-gather-cpuid will return a nonzero exit status if any kind of error occurs β such as (but not limited to) failure to create the output files. so like, if it flops, it flops loudly π
π SEE ALSO π
hwloc(7), hwloc-gather-topology(1), lstopo(1)
and that's the page, bestie π this was hwloc-gather-cpuid(1) from the hwloc manual β version 2.15.0, dated Sep 23, 2026. go gather some cpuid, ily, bye π«Άπ
π¦ where this page comes from
- arch rolling: hwloc 2.15.0-1 Β· BSD-3-Clause
- π the page's license: BSD-3-Clause
- Copyright Β© 2015-2023 Inria. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms