协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
custom-op-console-and-tools【开发与工程】Use advanced Jittor extension APIs for custom operators, jt.code kernels, C++ console embedding, and safe utility or converter workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task asks for advanced Jittor extension surfaces: inline jt.code, compiled custom ops, meta-operator design, C++ console embedding, utility CLI flags, or bounded PyTorch conversion/interoperability notes.
Do not use it for ordinary model/layer training, package installation, CUDA toolkit setup, dataset/model zoo workflows, or low-level framework internals that are not exposed by the public APIs. Route those tasks to the appropriate sibling sub-skill.
| Need | Use |
|---|---|
Decide between meta-operators, jt.code, compile_custom_op, and compile_custom_ops | Read references/custom-op-and-code.md. |
| Write or review a CPU-first custom code-op smoke check | Run scripts/custom_op_smoke.py with --help, then --skip-compile or the default tiny CPU smoke. |
| Generate C++ console compile flags, example source, or a compile command template | Read references/console-and-utilities.md and run scripts/jittor_console_flags.py. |
| Diagnose compiler, shape, dtype, CUDA, console-link, converter, or unsafe-service failures | Read references/troubleshooting.md. |
jt.code for small inline C++/CUDA kernels, and compile_custom_op(s) only for larger op classes or multi-file C++/CUDA implementations.jt.code snippet is a separate optional verification step and must be guarded by CUDA availability.jittor_utils.config through the bundled wrapper to generate flags or example code. Do not assume the host has a linkable Python shared library or a C++17-capable compiler.