Run tests against an existing hipDNN superbuild.
skillsy install rocm/rocm-libraries@hipdnn-superbuild-testUse this skill when the user asks to test an existing hipDNN superbuild. It does not configure or build the project. If no superbuild exists, tell the user to build first with hipdnn-superbuild.
Infer options from the user request:
hipdnn, miopen, hipblaslt, hip-kernel, integration-tests, or all; default allunit, integration, or all; default unitROCM_PATH=<path> override; Linux defaults to /opt/rocmDetermine the repository root:
git rev-parse --show-toplevel
Resolve paths:
<repo-root>/build.<build-dir>/bin.<skill-directory>/scripts, or source fallback <repo-root>/projects/hipdnn/tools/ai/skills/hipdnn-superbuild-test/scripts.Verify the superbuild exists:
ls <build-dir>/build.ninja
Stop if it is missing.
Resolve ROCm path on Windows:
python3 <scripts>/windows_rocm_setup.py --repo-root <repo-root> [--rocm-path <path>]
Parse ROCM_PATH=... from stdout and set ROCM_BIN=<rocm-path>/bin. Skip this step on Linux unless the user supplied an override.
Discover CMake test targets:
python3 <scripts>/discover_test_targets.py --build-dir <build-dir> --component <component> --scope <scope>
The helper prints <component>:<target> lines. It also handles the hip-kernel-provider path-qualified target naming.
If the helper reports that Ninja target discovery failed, treat that as an invalid or stale build directory and stop with the helper's diagnostic. If discovery succeeds but no targets match, report that the requested component or scope is not present in the existing superbuild.
Run tests through cmake_run.py when no gtest filter is requested:
python3 <scripts>/cmake_run.py --build-dir <build-dir> --target <target> [--rocm-path <path>] [--rocm-bin <path>] > <log> 2>&1
Add --jobs <N> only when explicit jobs are both requested and permitted. For verbose mode, append -verbose to the target name.
Run direct binaries when a gtest filter is requested:
python3 <scripts>/cmake_run.py --build-dir <build-dir> --binary <binary-path> --gtest-filter "<filter>" [--rocm-path <path>] [--rocm-bin <path>] > <log> 2>&1
Use the component-to-binary mapping below to choose binaries.
For every command, keep full output in a log and show only a short tail on failure. Track pass/fail per component. Stop at the first failure unless keep-going was requested.
| Component | Unit Binaries | Integration Binaries |
|---|---|---|
hipdnn |
hipdnn_backend_tests, hipdnn_frontend_tests, hipdnn_data_sdk_tests, hipdnn_flatbuffers_sdk_tests, hipdnn_plugin_sdk_tests, hipdnn_test_sdk_tests |
hipdnn_public_backend_tests, hipdnn_public_frontend_tests, hipdnn_backend_logging_shutdown_tests |
miopen |
miopen_plugin_tests |
miopen_plugin_integration_tests |
hipblaslt |
hipblaslt_plugin_tests |
hipblaslt_plugin_integration_tests |
hip-kernel |
hip_kernel_provider_tests |
hip_kernel_provider_integration_tests |
integration-tests |
hipdnn_integration_tests_unit_tests |
hipdnn_integration_tests, hipdnn_gpu_ref_tests |
Summarize per-component results:
hipdnn:
hipdnn-unit-check: PASS
miopen-provider:
miopen-provider-unit-check: FAIL (see <log>)
If a requested component has no matching target, say that it was not present in the existing superbuild and name the preset or component likely needed.
scripts/cmake_run.py, scripts/discover_test_targets.py, and scripts/windows_rocm_setup.py are bundled in this skill so linked and copied installs work independently.cmake_run.py, which sets PATH in Python's subprocess environment before launching CMake or test binaries.