# Test Compute

> Runs the rocprof-compute ctest suite against an existing build tree using a deterministic helper script. Use when a user asks to run tests, run ctest, verify a rocprof-compute build, or filter to a subset of tests.

- Skill: `abchoudh-amd/test-compute` (Agent Skill, multi-file: 4 files)
- Install (CLI): `npx skillmds@latest add abchoudh-amd/test-compute`
- Raw SKILL.md: https://api.skillmd.com/api/skills/abchoudh-amd/test-compute/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: abchoudh-amd (https://skillmd.com/u/abchoudh-amd)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/abchoudh-amd/test-compute

---


# Test Compute

Run the rocprof-compute test suite by invoking:
`~/.cursor/skills/test-compute/scripts/run-tests.sh`.

This skill assumes the build has already been produced by the sibling
`build-compute` skill.

## Quick start

1. Run the full suite from the rocprof-compute source root:

```bash
~/.cursor/skills/test-compute/scripts/run-tests.sh
```

2. Filter to a subset of tests:

```bash
~/.cursor/skills/test-compute/scripts/run-tests.sh \
  --filter analyze
```

3. Point at a custom build directory:

```bash
~/.cursor/skills/test-compute/scripts/run-tests.sh \
  --source-dir ~/dev/rocm-systems/projects/rocprofiler-compute \
  --build-dir out/build_coverage
```

## Behavior rules

- Wraps `ctest --test-dir <build-dir> --output-on-failure --parallel <jobs>`.
- Build dir defaults to `build` (resolved under `--source-dir` when relative).
- Jobs default to host CPU auto-detection; override with `--jobs`.
- Refuses to run if the build dir is missing or has no `CTestTestfile.cmake`.
- Builds are produced by the `build-compute` skill; this skill never builds.

## Additional resources

- [REFERENCE.md](REFERENCE.md)
- [EXAMPLES.md](EXAMPLES.md)

