{
  "schema_version": "1.0",
  "id": "T-6127d2eef9df",
  "url": "https://gpuatlas.top/articles/T-6127d2eef9df/",
  "title": "怎么确认两张显卡之间能不能直接传数据？",
  "summary": "GPU直接传输需分能力、真实带宽和框架采用路径验证，P2P不可用不等于所有多卡方式失败。",
  "language": "zh-Hans",
  "category": {
    "id": "c-04",
    "name": "多卡与多机",
    "url": "https://gpuatlas.top/categories/c-04/"
  },
  "topics": [],
  "body_text": "两卡能否直接传数据，需要分层验证。P2P依赖设备、驱动、拓扑和系统配置，系统出现两张卡只说明可见，目标框架还要实际采用相应路径。\n\n先列设备身份与拓扑，看各卡连接，再用对应平台支持的能力查询和传输测试。能力说明路径可支持，实际测试反映有效带宽、稳定性和错误，两者不能互相代替。\n\n随后检查模型后端、通信库、构建和启动配置。底层P2P测试通过不表示模型已选同一路径，记录实际日志及每卡峰值，用代表性输入观察完整等待，而不是只看一次拷贝数字。\n\n按固定版本文档使用相关设置，不随意开启来源不明变量。部分主板或系统条件会影响稳定，保留原路径基线，修改后重跑正确性与长负载，不为最快单次牺牲持续可用。\n\n若底层直接传输测试不支持，继续查目标框架是否提供其他路径，再用原模型请求验证容量和响应；不必就此认定双卡完全不能用。若测试支持而模型仍慢，则回到后端日志确认实际路径。保存拓扑、驱动和工具版本，这比只对照显卡型号更能解释两台机器为何不同。",
  "published_at": null,
  "modified_at": "2026-11-26T15:17:38.690397+00:00",
  "evidence": {
    "type": "documentation_and_conditional_estimates",
    "hardware_tested": false,
    "note": "资料解释与条件估算，非硬件实测。"
  },
  "sources": [
    {
      "id": "llamacpp-multigpu",
      "url": "https://raw.githubusercontent.com/ggml-org/llama.cpp/master/docs/multi-gpu.md",
      "retrieved_at": "2026-11-25T09:52:45.997121+00:00"
    },
    {
      "id": "nccl-troubleshooting",
      "url": "https://docs.nvidia.com/deeplearning/nccl/user-guide/docs/troubleshooting.html",
      "retrieved_at": "2026-11-25T10:16:15.738480+00:00"
    },
    {
      "id": "torch-distributed",
      "url": "https://docs.pytorch.org/docs/2.15/distributed.html",
      "retrieved_at": "2026-11-25T10:16:15.738480+00:00"
    }
  ],
  "revision_note": "完善阅读结构；非硬件实测。",
  "representations": {
    "html": "https://gpuatlas.top/articles/T-6127d2eef9df/",
    "json": "https://gpuatlas.top/data/articles/T-6127d2eef9df.json",
    "markdown": "https://gpuatlas.top/data/articles/T-6127d2eef9df.md"
  }
}
