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.1.0.tar.gz (10.9 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.1.0-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ascendtop-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ae653dff7e5ed1dd1dae4e1760e6152f5185b223cd92fb05ce76fc01e36027c7
MD5 7ad0a01328c869390429292b414917a1
BLAKE2b-256 f44651b5bb2bfa79afe4b480c88372d2fa67e39916e69530f3c25327eb999033

See more details on using hashes here.

Provenance

The following attestation bundles were made for ascendtop-0.1.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.1.0-py3-none-any.whl.

File metadata

  • Download URL: ascendtop-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.1 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6c32765a131ca6e8908fe4625e61ccb9bffcb3f81342081baac9d02725e7f0d7
MD5 616a10b2a956db9ec773bdbee8c467a5
BLAKE2b-256 4473614959df7ae71765ca273c89d90157434f96a67b77851d5158ab0f236da1

See more details on using hashes here.

Provenance

The following attestation bundles were made for ascendtop-0.1.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