NAME
Lib::CPUInfo::Cluster - CPUInfo Cluster object
VERSION
version 0.001
SYNOPSIS
my $index = 0;
my $cluster = get_cluster($index);
my $vendor = $cluster->vendor();
...
ATTRIBUTES
processor_start
my $start = $cluster->processor_start();
Returns an integer.
processor_count
my $count = $cluster->processor_count();
Returns an integer.
core_start
my $start = $cluster->core_start();
Returns an integer.
core_count
my $count = $cluster->core_count();
Returns an integer.
cluster_id
my $id = $cluster->cluster_id();
Returns an integer.
package
my $package = $cluster->package();
Returns the Lib::CPUInfo::Package package object.
vendor
my $vendor = $cluster->vendor();
Returns the vendor string for the cluster.
Available values:
unknownintelamdarmqualcommapplesamsungnvidiamipsibmingenicviacaviumbroadcomapmhuaweihygontexas_instrumentsmarvellrdcdmpmotorolatransmetacyrixrisenscsisnexgenumcdec
uarch
my $uarch = $cluster->uarch();
Returns the uarch string for the cluster.
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 = $cluster->cpuid();
Returns an integer.
This is only available on x86_64.
midr
my $midr = $cluster->midr();
Returns an integer.
This is only available on ARM or ARM64.
frequency
my $frequency = $cluster->frequency();
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.