协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
setup-build【开发与工程】Install and build ExecuTorch from source, including Python package variants, CMake presets, cross-compilation entry points, focused tests, and build troubleshooting.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the user needs to install ExecuTorch, build it from a source checkout, configure CMake, diagnose build/install failures, or choose a focused validation command after a build.
install_executorch.sh, pip install -e . --no-build-isolation, or EXECUTORCH_BUILD_MINIMAL.EXECUTORCH_* flags.backend-selection.qualcomm.cortex-m.profiling-debugging.llm-workflows.binary-size.--minimal, a single CMake preset, a single target, or a single pytest path.Run the bundled environment diagnostic before prescribing a long build or when triaging user errors:
python scripts/check_executorch_env.py --repo-root /path/to/executorch
Without --repo-root, it checks only the current Python/process/toolchain environment. With --repo-root, it also inspects an ExecuTorch checkout for expected source-build files, CMake presets, Windows symlink risk, and key submodule sentinels. The helper is read-only: it does not install packages, clone submodules, or build targets.
| User intent | Best first action |
|---|---|
| "Install ExecuTorch from source" | Create/activate Python 3.10-3.14 env, then ./install_executorch.sh --editable for development or ./install_executorch.sh --minimal for a lean export/runtime package. |
| "I already installed dependencies" | Use pip install -e . --no-build-isolation for Python-only iteration; rerun ./install_executorch.sh after C++/extension changes. |
| "Build C++ runtime" | Configure with cmake -B cmake-out --preset <platform> -DCMAKE_BUILD_TYPE=Release, then cmake --build cmake-out --parallel <jobs>. |
| "Build with backend X" | Add the corresponding -DEXECUTORCH_BUILD_<BACKEND>=ON flag only after verifying its SDK/toolchain prerequisite. Use backend-specific sub-skills for nontrivial setup. |
| "Validate install" | Start with import/package probes and one small export/runtime smoke check before pytest or full ctest. |