Skip to main content

nvitop-like terminal monitor for Ascend NPUs

Project description

ascendtop

ascendtop is a nvitop-like terminal monitor for Ascend NPUs.

It prefers the Ascend DCMI library (libdcmi.so) through Python ctypes, so it does not depend on the exact text layout of npu-smi info. If DCMI is unavailable, it falls back to parsing npu-smi info.

The terminal layout follows nvitop's main screen structure: an nvidia-smi-style device panel, a compact host CPU/MEM/SWAP panel, and a process panel with NPU PID USER NPU-MEM %SM %HMBW %CPU %MEM TIME COMMAND.

Usage

pip install ascendtop
ascendtop

One-shot output:

ascendtop --once

Force backend:

ascendtop --backend dcmi
ascendtop --backend npu-smi

Notes

  • The DCMI backend reads card/device metadata, power, temperature, HBM usage, utilization, and process memory via /usr/local/Ascend/driver/lib64/driver/libdcmi.so.
  • The fallback parser supports the npu-smi 26.0.rc1 table format.
  • Process command/user/RSS/CPU details are enriched via psutil when the PID is visible in the current namespace.

Project details


Download files

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

Source Distribution

ascendtop-0.2.0.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

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

ascendtop-0.2.0-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file ascendtop-0.2.0.tar.gz.

File metadata

  • Download URL: ascendtop-0.2.0.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ascendtop-0.2.0.tar.gz
Algorithm Hash digest
SHA256 97a0cb89bb0fddd72e7760f26a2d6bc99548b78b103842aa115a403a8112c345
MD5 d3cd6914bbdf7b6d87266b501ba6137d
BLAKE2b-256 6fd60f733e6d9edc162244b4e460380c6df73b1617cc7c7dc18cadb7612c239e

See more details on using hashes here.

Provenance

The following attestation bundles were made for ascendtop-0.2.0.tar.gz:

Publisher: publish.yml on MarkJoson/ascendtop

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ascendtop-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: ascendtop-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ascendtop-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 03bcd16a617a9b817e951ed59aa02a2a15d8e769b055e05e7b9d622e63ec0179
MD5 9fa73ed4dce7c3a095fb7a25a3994c15
BLAKE2b-256 405e39198c0ae2a98dff7d4c1e8624c5697513dba78b3355c64a5d2b42d70c31

See more details on using hashes here.

Provenance

The following attestation bundles were made for ascendtop-0.2.0-py3-none-any.whl:

Publisher: publish.yml on MarkJoson/ascendtop

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page