Skip to main content

pyhlml

Python3 wrapper for the HLML library

Getting Started

The pyhlml library is an python API wrapper for the Synapse HLML library, documented here: https://docs.habana.ai/en/latest/API_Reference_Guides/HLML_API_Reference.html

Requirements

  • Python3
  • Habana-enabled device ( inc. Drivers/Firmware )
  • Synapse version 1.0.1-81 or later

Install - PIP

$ pip3 install -e git+https://github.com/HabanaAI/pyhlml.git#egg=pyhlml

Basic Usage

import pyhlml

# Initialize the library
pyhlml.hlmlInit()

# Get total number of devices in the system
device_count = pyhlml.hlmlDeviceGetCount()

# For each device print utilization
for i in range(device_count):
    device = pyhlml.hlmlDeviceGetHandleByIndex(i)
    print(f"Device {i} Utilization: {pyhlml.hlmlDeviceGetUtilizationRates(device)}

# Shutdown
pyhlml.hlmlShutdown()

Versions

This wrapper shadows the synapse release versions and uses the scheme

$release-$build

where release is the synapse release and build is the build of this repo ( 0 indexed ).

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

habana_pyhlml-1.24.1.482-py3-none-any.whl (75.8 kB view details)

Uploaded Python 3

File details

Details for the file habana_pyhlml-1.24.1.482-py3-none-any.whl.

File metadata

File hashes

Hashes for habana_pyhlml-1.24.1.482-py3-none-any.whl
Algorithm Hash digest
SHA256 8931e511727d17422c1a1be84d201728f871c67e39ee608b2a88349a5493adad
MD5 af7d0c9b9e8f5f74e612a242e8015bf6
BLAKE2b-256 c52ee951e96a5dcb635602482e50bf12ec54eaaa939e919fb0e850b1f66e131a

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.24.1.482 This release

1 file

1.24.0.1007

1 file

1.23.0.695

1 file

1.22.2.32

1 file

1.22.1.6

1 file

1.22.0.740

1 file

1.21.5.6

1 file

1.21.4.3

1 file

1.21.3.57

1 file

1.21.2.76

1 file

1.21.1.16

1 file

1.21.0.555

1 file

1.20.1.97

1 file

1.20.0.543

1 file

1.19.2.32

1 file

1.19.1.26

1 file

1.19.0.561

1 file

1.18.0.524

1 file

1.17.1.40

1 file

1.17.0.495

1 file

1.16.2.2

1 file

1.16.1.7

1 file

1.16.0.526

1 file

1.15.3.5

1 file

1.15.2.12

1 file

1.15.1.15

1 file

1.15.0.479

1 file

1.14.0.493

1 file

1.13.0.463

1 file

1.12.1.10

1 file

1.12.0.480

1 file

1.11.0.587

1 file

1.10.0.494

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page