Skip to main content

cuid-build-install

Build and install cuid from source. Use when: building locally, installing before tests, pre-review build verification, build + install + verify.

跳到安装

来源信息

仓库
ROCm/rocm-systems
最近来源活动
2026年5月5日 22:59
检测到的 SKILL.md 语言
英语
星标
497
分支
406

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
cuid-build-install
description
Build and install cuid from source. Use when: building locally, installing before tests, pre-review build verification, build + install + verify.
# Build & Install cuid Builds cuid from source and installs locally. Used by the review agent as a pre-step before dispatching subagents, and can be invoked independently. ## Prerequisites - CMake, make, and a C/C++ toolchain installed - `sudo` access for package install - Working directory must be the cuid workspace root ## Build Commands All commands assume `$WORKSPACE` is the cuid workspace root (where `CMakeLists.txt` lives). ### Step 1: Clean ```bash cd "$WORKSPACE" sudo rm -rf build ``` ### Step 2: Uninstall Previous ```bash sudo rm -rf /opt/amdcuid 2>/dev/null || true ``` ### Step 3: Configure & Build ```bash mkdir -p build && cd build cmake .. make -j "$(nproc)" sudo make install ``` ### Step 4: Verify ```bash /opt/amdcuid/bin/amdcuid_tool --version ``` ## One-Shot Command For use in scripts or as a single terminal command: ```bash cd "$WORKSPACE" && \ sudo rm -rf build && \ mkdir -p build && cd build && \ sudo apt remove -y amdcuid 2>/dev/null || true && \ cmake .. && \ make -j "$(nproc)" && \ sudo make install && \ /opt/amdcuid/bin/amdcuid_tool --version ``` ## Output On success, capture and report: - **Build time** (cmake + make duration) - **Package files** produced (names + sizes) - **Installed version** (output of `/opt/amdcuid/bin/amdcuid_tool --version`) - **Any warnings** from cmake or make (even if build succeeded) On failure, capture and report: - **Which step failed** (configure, build, package, install) - **Full error output** from the failing command - **This is ❌ BLOCKING** — a build failure stops the review
在 GitHub 查看