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 ).
Metadata
Release files for pyhlml 1.9.0.580.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyhlml-1.9.0.580.1-py3-none-any.whl | Python 3 | none | any | Details for pyhlml-1.9.0.580.1-py3-none-any.whl |
Release files / pyhlml-1.9.0.580.1-py3-none-any.whl
| Download URL | pyhlml-1.9.0.580.1-py3-none-any.whl |
|---|---|
| Size | 12.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5775bb8ac7a6cf1b44a2dcc23e50814ec6b2e7a950c1a206a0b0a9accbd1400e
|
|
BLAKE2b-256 checksum How to use checksums |
e8ba27cf258679b1928b0f6ddec0a6e23ae4bd89952fb8bfbda3c5950ee84da1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.16
|
Security for pyhlml 1.9.0.580.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.