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
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mlu_api-0.1.1-cp310-cp310-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: mlu_api-0.1.1-cp310-cp310-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 452.3 kB
- Tags: CPython 3.10, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4846035c77deb147797bf8ccd3ae0be7a22455feb4c97c9a472e768c581a8976
|
|
| MD5 |
6cf6f2a95f2e28927f9dd185686d3de1
|
|
| BLAKE2b-256 |
5916dc3e93c88aea110bba904ad1f50018e4d6fe7d80ca81f09328d2da36cc3b
|