来源信息
- 仓库
- stillwater-sc/mpadao-template
- 最近来源活动
- 2026年3月8日 01:59
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 1
- 分支
- 2
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- name
- scaffold-app
- description
- Scaffold a new MPADAO app or benchmark with CMakeLists.txt boilerplate
- argument-hint
- <category> <name> — e.g., 'high-precision fft' or 'benchmark memory'
- disable-model-invocation
- true
Create a new MPADAO application or benchmark. Parse $ARGUMENTS to determine placement:
If first argument is "benchmark":
- Create in benchmark/<name>/
- Follow the CMakeLists.txt pattern from benchmark/accuracy/
- Add add_subdirectory() to benchmark/CMakeLists.txt
- Set folder to "Benchmarks/<Name>"
Otherwise:
- Create in src/apps/<category>/<name>/
- Follow the CMakeLists.txt pattern from src/apps/high-precision/digits_of_pi/
- Add add_subdirectory() to src/CMakeLists.txt
- Set folder to "Applications/<Category>"
For all targets:
1. Create the directory
2. Create CMakeLists.txt with:
- cmake_minimum_required(VERSION 3.22)
- Appropriate app_name, include paths, folder property
- install(TARGETS ...) line
3. Create main.cpp with:
- Standard copyright header (Stillwater Supercomputing, Inc., MIT license)
- try/catch main() pattern matching existing apps
- Appropriate Universal/MTL5 includes based on the app's purpose
4. Wire up the parent CMakeLists.txt
5. Build to verify: cd build && cmake .. && make <target> -j$(nproc)
在 GitHub 查看