trunk/c8bb60779d0c8878e64a0b20b74fc66643f2baba: [MPS] Keep stream command-buffer state on the serial queue (#197836)
- PyTorch 近 90 天出现 1358 次
- PyTorch 近 90 天第 1341 次发版
- 上一次:同一天稍早 · ciflow/trunk/198298
发生了什么
MPSStream serializes GPU work through a per-stream serial dispatch queue, and commandEncoder() / endKernelCoalescing() / commit() all mutate the stream's _commandBuffer and _commandEncoder . Several callers touched that state from the calling thread instead, so a second thread running MPS ops concurrently could have its encoder ended and released mid-use: SIGSEGV binding a released encoder, "A command encoder is alr…
摘要按规则整理自下方来源原文