← 返回事件
持续讨论AI发版

trunk/c8bb60779d0c8878e64a0b20b74fc66643f2baba: [MPS] Keep stream command-buffer state on the serial queue (#197836)

发生了什么

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…

摘要按规则整理自下方来源原文

为什么在扩散

来源