Files
TheRock/rocm-libraries/projects/hipblaslt/scripts
derek.holloway 7502bf64a4
CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00
..

hipBLASLt scripts

For full build prerequisites and installation, see the project README and Building and installing hipBLASLt.

run_tensile_logic_check.py

Runs TensileLogic --check-all on the library logic YAMLs (same check as the pre-build gate). This file is cross-platform (Windows and Unix).

How to run

From the hipblaslt project root (where library/ and tensilelite/ live):

python scripts/run_tensile_logic_check.py

Windows: python scripts\run_tensile_logic_check.py (or use py if you have the launcher).

That’s it. Use whatever type of Python you have (system, store, or a venv). If that Python is missing dependencies (e.g. joblib) and the project has a .venv in the repo root, the script will re-run itself with .venv\Scripts\python.exe (Windows) or .venv/bin/python (Unix), so you don’t have to remember to activate.

One-time setup

  1. Build once so rocisa is present under build/tensilelite/rocisa/ (nanobind _rocisa next to the rocisa package) or the legacy build/tensilelite/rocisa/lib layout.
  2. Python deps – either:
    • Use the project .venv: python -m venv .venv then .venv\Scripts\pip install -r tensilelite/requirements.txt (Windows) or .venv/bin/pip install -r tensilelite/requirements.txt (Unix), or
    • Install into your current Python: pip install -r tensilelite/requirements.txt.

Optional: check a single directory

python scripts/run_tensile_logic_check.py library/src/amd_detail/rocblaslt/src/Tensile/Logic/asm_full/navi33/GridBased

Known-bugs list (ROCM-7144 / validation exceptions)

If tensilelite/Tensile/TensileLogic/known_bugs.yaml exists, this script passes --known-bugs to TensileLogic automatically so specific (logic file path, SolutionIndex) pairs are skipped (same as the CMake pre-build gate). Paths in that YAML are relative to the library logic root (library/), with optional # comments and an optional ticket: field for Jira keys. Override or disable this list by passing your own --known-bugs path on the command line.

Exit code

  • 0 – All solutions passed (Reject = 0).
  • 1 – One or more failed; errors are printed.

The full tree (~2246 files) can take several minutes, so passing a subdirectory is useful for quick checks. To tune parallelism: python scripts/run_tensile_logic_check.py -j 16 (default is 48 workers, capped by CPU count).

run_tensile_logic_check.sh (Unix only)

Thin wrapper that runs the script with .venv/bin/python, if it's present, and with python3 otherwise. Use the .py script directly on Windows.