Skip to main content

validate

Run full rocDecode build and test pipeline after code changes

Ir a la instalación

Datos de origen

Repositorio
ROCm/rocm-systems
Última actividad en el origen
6 de agosto de 2026 a las 15:04
Idioma detectado de SKILL.md
inglés
Estrellas
508
Forks
414

Opciones de instalación

De forma predeterminada está seleccionado el prompt que primero revisa el origen. Puedes cambiar a un comando directo o descargar una copia local.

Revisa los archivos de origen

Lee SKILL.md y los archivos complementarios que muestra SkillsMP antes de decidir si quieres instalarlo.

Mostrando SKILL.md

SKILL.md
Instrucciones de origen · Vista previa de solo lectura
name
validate
description
Run full rocDecode build and test pipeline after code changes
allowed-tools
["Bash(cmake *)","Bash(make *)","Bash(test/validate.sh *)","Bash(test/build_samples.sh *)","Bash(nproc)"]
Run the full rocDecode validation pipeline. Execute these steps in order, stopping only if a step fails. Run from the rocDecode project root (the directory containing this repo's `build/`, `samples/`, and `test/` directories). IMPORTANT: Run each command as a SEPARATE Bash tool call. Do not chain commands with && or |. The build derives its compiler, install prefix, and CTest data path from `ROCM_PATH` (default `/opt/rocm`). If ROCm is installed elsewhere (e.g. a TheRock or custom build), `ROCM_PATH` must be set. NOTE: skills run cmake in a NON-interactive shell that does not source `~/.bashrc`, so set `ROCM_PATH` in `~/.profile` (or export it before launching Claude Code) — otherwise the build silently falls back to `/opt/rocm`. Step 1 verifies this and fails fast with guidance if the toolchain is missing. Conformance test data (Phase 4) is located via the `ROCDECODE_CONFORMANCE_DIR` environment variable, which defaults to `$HOME/rocDecodeConformance`. It must contain the per-codec subdirectories `AvcConformance`, `Av1Conformance`, `HevcConformance`, and `Vp9Conformance`. Codecs whose directory is missing are reported as WARNING and skipped, so the pipeline still runs without the full data set. ## Step 1 — Verify the ROCm toolchain Run: `test/validate.sh --check-rocm` This confirms `ROCM_PATH` points at a usable ROCm install (the compiler exists) and that the install prefix is writable before any build work — `make install` installs into `ROCM_PATH`, so a read-only prefix like a system `/opt/rocm` would need sudo, which this skill does not use. If it fails, fix `ROCM_PATH` (see the note above; point it at a user-writable install) and re-run before continuing. Do not retry without changing `ROCM_PATH` — if it cannot be resolved, stop and ask the developer. ## Step 2 — Configure, clean, rebuild, and install the core library The `build/` directory is not checked into the repo, so on a fresh checkout it must be created and configured first. `cmake -B build -DENABLE_EXTENDED_TESTS=ON` is idempotent — it creates and configures `build/` if missing, and is a cheap no-op if it is already configured. `-DENABLE_EXTENDED_TESTS=ON` enables the additional FFmpeg-based CTest cases (the CTest phase covers 6 tests without it, 15 with it); those extra tests are only added when FFmpeg is found, so the flag is harmless on machines without FFmpeg. Run these four commands separately: 1. `cmake -B build -DENABLE_EXTENDED_TESTS=ON` 2. `make clean -C build` 3. `make -j -C build` 4. `make install -C build` (`make -j` lets make choose parallelism without a `$(nproc)` command substitution, which would otherwise trigger a permission prompt on every run.) ## Step 3 — Build all sample apps Run: `test/build_samples.sh` ## Step 4 — Run validation Run: `test/validate.sh` Report the final summary from validate.sh to the user.
Ver en GitHub