The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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:

  • unknown

  • p5

  • quark

  • p6

  • dothan

  • yonah

  • conroe

  • penryn

  • nehalem

  • sandy_bridge

  • ivy_bridge

  • haswell

  • broadwell

  • sky_lake

  • kaby_lake

  • palm_cove

  • sunny_cove

  • willamette

  • prescott

  • bonnell

  • saltwell

  • silvermont

  • airmont

  • goldmont

  • goldmont_plus

  • knights_ferry

  • knights_corner

  • knights_landing

  • knights_hill

  • knights_mill

  • xscale

  • k5

  • k6

  • k7

  • k8

  • k10

  • bulldozer

  • piledriver

  • steamroller

  • excavator

  • zen

  • zen2

  • geode

  • bobcat

  • jaguar

  • puma

  • arm7

  • arm9

  • arm11

  • cortex_a5

  • cortex_a7

  • cortex_a8

  • cortex_a9

  • cortex_a12

  • cortex_a15

  • cortex_a17

  • cortex_a32

  • cortex_a35

  • cortex_a53

  • cortex_a55r0

  • cortex_a55

  • cortex_a57

  • cortex_a65

  • cortex_a72

  • cortex_a73

  • cortex_a75

  • cortex_a76

  • cortex_a76ae

  • cortex_a77

  • neoverse_n1

  • neoverse_e1

  • scorpion

  • krait

  • kryo

  • falkor

  • saphira

  • denver

  • denver2

  • carmel

  • exynos_m1

  • exynos_m2

  • exynos_m3

  • exynos_m4

  • exynos_m5

  • mongoose_m1

  • mongoose_m2

  • meerkat_m3

  • meerkat_m4

  • swift

  • cyclone

  • typhoon

  • twister

  • hurricane

  • monsoon

  • mistral

  • vortex

  • tempest

  • lightning

  • thunder

  • thunderx

  • thunderx2

  • pj4

  • brahma_b15

  • brahma_b53

  • xgene

  • dhyana

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.