Skip to content

Add information about version of gaudi device #478

@kkurzacz-intel

Description

@kkurzacz-intel

User story

As a perfspect user, I'd love to know what Gaudi version is installed (gaudi1, gaudi2 or gaudi3). This information is as useful for me as CPU architecture (ICX, SPR...)

Regarding especially JSONs, information could, for example, stay at .["Gaudi"][*]["Microarchitecture"], i.e:

  "Gaudi": [
    {
      ...,
      "Microarchitecture": "gaudiN"
      ...,
    },
    ...,

where N belongs to {1, 2, 3}

I used "Microarchitecture" key as suggestion, because currently for CPUs, the model kind stays as same key.

Details

Current Perfspect version: 3.9.0_2025-08-14_e3811ca8

As of now, information about currently installed Gaudi version is missing. Unfortunately, it's not easily available. Current BKM I was told exists in an habana gaudi driver installer habanalabs-installer.sh:

    __DEFAULT_HL_DEVICE=
    __pcidev=$(grep PCI_ID /sys/bus/pci/devices/*/uevent | grep -i 1da3: || echo "")
    if echo $__pcidev | grep -qE '1000|1001|1010|1011'; then
        __DEFAULT_HL_DEVICE="gaudi"
    elif echo $__pcidev | grep -qE '1020|1030'; then
        __DEFAULT_HL_DEVICE="gaudi2"
    elif echo $__pcidev | grep -qE '106[0-9]'; then
        __DEFAULT_HL_DEVICE="gaudi3"
    fi
    export HL_DEVICE=$__DEFAULT_HL_DEVICE

BKM source

If you visit Habana Gaudi "Upgrade Driver and Software" docs, download mentioned script:

https://vault.habana.ai/artifactory/gaudi-installer/1.21.4/habanalabs-installer.sh

Then, on lines 376 you can find the mentioned function that detects gaudi model version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions