NAME
Lib::CPUInfo::UArchInfo - CPUInfo UArchInfo object
VERSION
version 0.001
SYNOPSIS
my $index = 0;
my $uarchinfo = get_uarch($index);
my $uarch = $uarchinfo->uarch();
...
ATTRIBUTES
uarch
my $uarch = $uarchinfo->uarch();
Returns the uarch string for the core.
Available values:
unknownp5quarkp6dothanyonahconroepenrynnehalemsandy_bridgeivy_bridgehaswellbroadwellsky_lakekaby_lakepalm_covesunny_covewillametteprescottbonnellsaltwellsilvermontairmontgoldmontgoldmont_plusknights_ferryknights_cornerknights_landingknights_hillknights_millxscalek5k6k7k8k10bulldozerpiledriversteamrollerexcavatorzenzen2geodebobcatjaguarpumaarm7arm9arm11cortex_a5cortex_a7cortex_a8cortex_a9cortex_a12cortex_a15cortex_a17cortex_a32cortex_a35cortex_a53cortex_a55r0cortex_a55cortex_a57cortex_a65cortex_a72cortex_a73cortex_a75cortex_a76cortex_a76aecortex_a77neoverse_n1neoverse_e1scorpionkraitkryofalkorsaphiradenverdenver2carmelexynos_m1exynos_m2exynos_m3exynos_m4exynos_m5mongoose_m1mongoose_m2meerkat_m3meerkat_m4swiftcyclonetyphoontwisterhurricanemonsoonmistralvortextempestlightningthunderthunderxthunderx2pj4brahma_b15brahma_b53xgenedhyana
cpuid
my $cpuid = $uarchinfo->cpuid();
Returns an integer.
This is only available on x86_64.
midr
my $midr = $uarchinfo->midr();
Returns an integer.
This is only available on ARM or ARM64.
processor_count
my $count = $uarchinfo->processor_count();
core_count
my $count = $uarchinfo->core_count();
Returns an integer.
AUTHOR
Sawyer X
COPYRIGHT AND LICENSE
This software is copyright (c) 2021 by Sawyer X.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.