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.

abchoudh-amd Updated

File contents

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:
~/.cursor/skills/test-compute/scripts/run-tests.sh
  1. Filter to a subset of tests:
~/.cursor/skills/test-compute/scripts/run-tests.sh \
  --filter analyze
  1. Point at a custom build directory:
~/.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
  • EXAMPLES.md

abchoudh-amd/cursor-ai-skills/tree/main/.cursor/skills/test-compute commit f9ddfe7b24

Frequently asked questions

npx skillmds@latest add abchoudh-amd/test-compute