A low level hardware debugger
Project description
TT-Lensium :tm:
A low-level hardware debugger
A low-level debugging tool for Tenstorrent hardware that enables direct access to and communication with Wormhole and Blackhole devices.
Quickstart
You can install latest published version with:
pip install tt-exalens
Or specific version with:
pip install tt-exalens=="x.y.z"
Alternatively, you can install the latest code from GitHub with:
pip install git+https://github.com/tenstorrent/tt-exalens.git
The CLI application can be run by invoking the tt-exalens command after installing the wheel.
Running the CLI application
The CLI application can be run via the tt-exalens.py script or by invoking the tt-exalens command after installing the wheel.
The application supports both local and remote device access. For remote connections, a server instance must be started using the same application.
A GDB server can be launched, enabling stepping, breakpoints, and other debugging features via a GDB client.
For more usage information, refer to the tutorial or the documentation.
Using library
The application functionality is also available through the ttexalens Python library, enabling you to create custom scripts that interact with Tenstorrent hardware.
For a quick start with the library, check out the tutorial. Full documentation is also available here.
Development
Setting up environment
The recommended way to manage dependencies is by creating a virtual environment with:
./scripts/create-venv.sh
To activate the created environment, use:
.venv/bin/activate
Alternatively, you can use your existing environment and just install dependencies with:
./scripts/install-deps.sh
Testing
Test requirements
The following dependencies are required to build the necessary kernels:
- ninja-build,
- cmake
- make
Running tests
The easiest way to run all tests locally is by using the make wrapper from the project root directory:
make test
This command will build dependencies, run all tests, create the wheel, and run wheel tests.
If you don't need all of these steps, you can run them manually:
# Compile kernels that tests use
make
# Install runtime dependencies
pip install -r ttexalens/requirements.txt
# Install test dependencies
pip install -r test/test_requirements.txt
# Run library tests
pytest test/ttexalens
# Run CLI application tests
pytest test/app
If you're developing with VSCode (or its derivatives), you can use the Testing extension. Install the Python extension to enumerate all tests within the Testing tab in the activity bar.
Updating documentation
Library documentation is automatically generated from source code docstrings. To update the library documentation, run the following command in your development environment:
make docs
in the project root.
For more advanced use cases, refer to the source code of the documentation generation scripts, located in docs/bin.
Static checks
Pre-commit
We have defined various pre-commit hooks that check the code for formatting, licensing issues, etc.
To install pre-commit, run the following command:
pip install pre-commit
After installing pre-commit, you can install the hooks by running:
pre-commit install
Now, each time you run git commit the pre-commit hooks (checks) will be executed.
If you have already committed before installing the pre-commit hooks, you can run on all files to "catch up":
pre-commit run --all-files
For more information visit pre-commit
mypy
We use mypy for static code analysis.
You can use the make wrapper to execute it with:
make mypy
Or run it directly from your development environment with:
mypy
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
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 tt_exalens-0.3.14-py3-none-any.whl.
File metadata
- Download URL: tt_exalens-0.3.14-py3-none-any.whl
- Upload date:
- Size: 4.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9891a412a7671583697c5ddb874f3919028ce272b3298043772d58e1f3d7efa0
|
|
| MD5 |
208ad2b7efd73781a5304a8c714301c8
|
|
| BLAKE2b-256 |
27875a3c1ba93df2286249f4dce62dadbc5ff27d6f35671bce92e15ef14595dd
|
Provenance
The following attestation bundles were made for tt_exalens-0.3.14-py3-none-any.whl:
Publisher:
release-version.yml on tenstorrent/tt-exalens
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tt_exalens-0.3.14-py3-none-any.whl -
Subject digest:
9891a412a7671583697c5ddb874f3919028ce272b3298043772d58e1f3d7efa0 - Sigstore transparency entry: 1271072939
- Sigstore integration time:
-
Permalink:
tenstorrent/tt-exalens@3127821c8d40b4cd3464821232bfda50d84c5222 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/tenstorrent
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-version.yml@3127821c8d40b4cd3464821232bfda50d84c5222 -
Trigger Event:
push
-
Statement type: