Contributing
Development setup
git clone https://github.com/sunway513/rocm-trace-lite.git
cd rocm-trace-lite
make -j
pip install -e .
Running tests
# CPU-only tests (no GPU required, 314+ tests)
cd tests && python3 -m pytest -v
# GPU integration tests (requires ROCm GPU)
make test-gpu
Code style
C++: C++17,
-O3 -g, no exceptions in hot pathsPython: ruff-clean, pytest for tests
Commits: imperative mood, explain “why” not “what”
GitHub: all issues, PRs, and commit messages in English
Before submitting a PR
Run
ruff checkon Python filesRun
python3 -m pytest -vin tests/Build and verify clean dependency chain (
make)Run GPU tests if you modified C++ code
Architecture guidelines
Keep the .so dependency chain minimal (HSA + SQLite only)
No
#includeof roctracer, rocprofiler-sdk, or libroctx64 headersSource guard tests enforce this automatically