Skip to main content

Python bindings for Cambricon's libraries

Project description

MLU-API

Python bindings for Cambricon's libraries

Usage

Install

pip install mlu-api

Example

from mlu_api import cndev

print(cndev.get_device_count())

Development

Build and Install

uv sync
uv pip install --no-build-isolation -e .

Test

uv run -- pytest -s

How to generate compile_command.json

ln -s build/cp310-cp310-linux_x86_64/compile_commands.json .

Publish

sudo apt install patchelf
rm -rf dist
uv build
uv run auditwheel repair dist/*.whl --plat manylinux_2_34_x86_64
uv publish wheelhouse/mlu_api-0.1.0-cp310-cp310-manylinux_2_34_x86_64.whl

Project details


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.

mlu_api-0.1.1-cp310-cp310-manylinux_2_34_x86_64.whl (452.3 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

File details

Details for the file mlu_api-0.1.1-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for mlu_api-0.1.1-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 4846035c77deb147797bf8ccd3ae0be7a22455feb4c97c9a472e768c581a8976
MD5 6cf6f2a95f2e28927f9dd185686d3de1
BLAKE2b-256 5916dc3e93c88aea110bba904ad1f50018e4d6fe7d80ca81f09328d2da36cc3b

See more details on using hashes here.

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