计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
runtime-and-installation【效率与协作】Install, validate, select backends, and troubleshoot Jittor runtime, compiler, cache, profiling, and performance behavior.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is to install Jittor, validate an import or first JIT compile, select CPU/GPU/distributed runtime flags, diagnose cache/compiler/backend failures, or run a bounded performance/profiling check.
Do not use this sub-skill for deep Tensor/Var/autograd API usage, neural-network layer or optimizer recipes, dataset/model downloads, or custom C++ operator authoring; route those to the matching Jittor sub-skill.
jt.has_cuda and a tiny synchronized op after setting jt.flags.use_cuda = 1.with jt.flag_scope(...):) for temporary backend/debug changes.--use-cuda only after CUDA is intentionally configured.Install with a supported Python and a working C++ compiler, then run a CPU import/JIT smoke:
python - <<'PY'
import jittor as jt
x = jt.float32([1, 2, 3])
y = (x * x).sum()
print({
"version": jt.__version__,
"sum_squares": float(y.data),
"has_cuda": bool(jt.has_cuda),
"use_cuda": int(jt.flags.use_cuda),
"cc_type": jt.flags.cc_type,
})
PY
Prefer bundled support checks over original repo tests for routine validation:
python ../../scripts/check_jittor_env.py
python ../../scripts/jittor_cache_doctor.py
For CUDA, first prove availability and then enable it:
python - <<'PY'
import jittor as jt
if not jt.has_cuda:
raise SystemExit("CUDA is not available to Jittor; validate CPU or configure CUDA first.")
jt.flags.use_cuda = 1
x = jt.float32([1, 2, 3])
print(float((x * x).sum().data))
PY
For performance timing, run from this sub-skill directory:
python scripts/jittor_perf_probe.py --warmup 1 --rerun 5