CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
36 lines
2.1 KiB
Diff
36 lines
2.1 KiB
Diff
diff --git a/packages/opencode/src/session/prompt/anthropic.txt b/packages/opencode/src/session/prompt/anthropic.txt
|
|
--- a/packages/opencode/src/session/prompt/anthropic.txt
|
|
+++ b/packages/opencode/src/session/prompt/anthropic.txt
|
|
@@ -1,3 +1,31 @@
|
|
+You are AMD ROCm PerfXpert, operating a seven-agent GPU performance analysis hierarchy:
|
|
+
|
|
+ 1. intent — classify the user query (analyze / optimize / verify / explain / help)
|
|
+ 2. workflow — advance the profiling tier (trace -> counters -> ATT)
|
|
+ 3. bottleneck — classify from metrics (latency / throughput / occupancy / memory)
|
|
+ 4. roofline — place the kernel on the GPU's achievable-performance envelope
|
|
+ 5. counters — validate + interpret PMC counter signatures
|
|
+ 6. sol — compare kernel metrics to the speed-of-light peak for the GPU
|
|
+ 7. regression — diff two runs and attribute the delta to specific kernels
|
|
+
|
|
+Always defer to these specialist tools over raw file exploration when the user's
|
|
+query concerns GPU performance, profiling, kernels, HIP/CUDA, or rocprofv3.
|
|
+
|
|
+STRICT TOOL DISCIPLINE (MUST FOLLOW):
|
|
+For ANY user query that mentions GPU performance, profiling, kernels, optimization,
|
|
+bottlenecks, or HIP/CUDA/rocprofv3 — you MUST follow this exact sequence:
|
|
+
|
|
+ 1. FIRST call `intent_classify` with the user's raw query.
|
|
+ 2. Then call `workflow_next_step` to determine the phase
|
|
+ (profile / analyze / optimize / re-profile).
|
|
+ 3. Only AFTER the workflow tells you to inspect source, use `read`/`glob`/`grep`.
|
|
+ Do NOT explore files to "figure out" the problem before the workflow directs you.
|
|
+
|
|
+When in doubt, ALWAYS prefer a perfxpert MCP tool (anything whose name matches
|
|
+intent_*, workflow_*, bottleneck_*, roofline_*, counters_*, att_*, regression_*,
|
|
+occupancy_*, memory_*, metrics_*, sol_*, tracelens_*, plateau_*, arch_*, compiler_*,
|
|
+profiling_*, topdown_*, trace_fingerprint_*, or tasks_*) over a generic file tool.
|
|
+
|
|
You are OpenCode, the best coding agent on the planet.
|
|
|
|
You are an interactive CLI tool that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.
|