用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ZhangXin8069/PyQCU --skill profiler命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
PyQCU 性能基准 skill:覆盖 examples/benchmark 的通用基准,以及 dev87 strict MultiGrid 对 QUDA 的可复现公平计时与显存口径。
pyqcu.cuda 目录的完整生成 skill:C++ CUDA 后端(libqcu.so)的 Cython 桥接包;含 strict QUDA-style MultiGrid、params/argv/set_ptrs 参数协议与显存生命周期约束。
cpp/cuda/qcu/include 目录的完整生成 skill:26 个模板化 CUDA 头文件(内核内联),define.h 须镜像 pyqcu/cuda/define.py。
正在显示 SKILL.md
| name | profiler |
| description | examples/profiler 目录的完整生成 skill:torch.profiler 性能剖析,导出 Chrome trace 供 Perfetto 可视化。 |
Performance profiling with torch.profiler. Exports Chrome trace format for visualization in Perfetto.
| File | What it profiles |
|---|---|
conftest.py | Main profiler entry |
conftest.cpu.py | CPU profiling |
conftest.cuda.py | CUDA GPU profiling |
conftest.npu.py | NPU profiling |
Uses torch.profiler.profile(...) with record_shapes=True, with_modules=True, with_flops=True.
cd examples/profiler && mpirun -np 1 python -u conftest.py
# Load resulting trace_*.json into https://ui.perfetto.dev