Build hipDNN with providers via the repository superbuild.
skillsy install rocm/rocm-libraries@hipdnn-superbuildUse this skill when the user asks to configure or build hipDNN through the rocm-libraries repository superbuild. It builds only; use hipdnn-superbuild-test for tests after a successful build.
Infer options from the user request:
hipdnn-providersROCM_PATH=<path> override; Linux defaults to /opt/rocmCLANG_PATH=<path> override; default D:/develop/dist/clang/binGPU_TARGETS=<arch> override; Windows wheel setup defaults to gfx1151SHA=<commit> to pin the wheel setupRead CMakePresets.json from the repository root if exact preset contents matter. Common hipDNN presets:
| Preset | Components |
|---|---|
hipdnn |
hipDNN only |
hipdnn-integration-tests |
hipDNN plus integration tests |
hipdnn-providers |
hipDNN, miopen-provider, hipblaslt-provider, integration tests |
hipdnn-providers-all |
All providers, including unsupported providers |
miopen-provider |
hipDNN, miopen-provider, integration tests |
hipblaslt-provider |
hipDNN, hipblaslt-provider, integration tests |
hip-kernel-provider |
hipDNN, hip-kernel-provider, integration tests |
hipdnn-samples |
hipDNN, supported providers, integration tests, samples |
Determine the repository root:
git rev-parse --show-toplevel
Choose the build and log locations:
BUILD_DIR=<repo-root>/build.Locate this skill's helper directory:
<skill-directory>/scripts<repo-root>/projects/hipdnn/tools/ai/skills/hipdnn-superbuild/scriptsResolve ROCm and Clang paths:
python3 <scripts>/windows_rocm_setup.py --repo-root <repo-root> [--rocm-path <path>] [--clang-path <path>] [--gpu-targets <arch>] [--sha <commit>]
On Linux this echoes only provided overrides. On Windows it detects or provisions the wheel-based ROCm install and prints KEY=VALUE lines for subsequent commands.
If a clean rebuild was requested, remove the selected build directory using the active host's normal approval/safety flow.
Configure from the repository root. Always bind the preset configure to the selected build directory so configure and build operate on the same tree:
cmake --preset <preset> -B <build-dir> [extra -D options]
Add -DROCM_PATH=<path> when a ROCm path is resolved or provided. On Windows also add -DCMAKE_PROGRAM_PATH=<clang-path> and -DGPU_TARGETS=<arch>.
Build with output redirected to a log:
cmake --build <build-dir> > <log> 2>&1
If explicit jobs are allowed and requested, pass them through to CMake/Ninja. On failure, report the log path and tail the last relevant lines.
If the build fails with a stale CMake cache error such as does not match the source, clean the selected build directory once, reconfigure with the same -B <build-dir> command, and retry once. Do not loop.
Summarize:
hipdnn-superbuild-test if tests are neededscripts/windows_rocm_setup.py is bundled in this skill so linked and copied installs work independently.