You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to share a tensor between multiple threads on a metal accelerator, I get this error and then the program aborts without a panic message.
-[AGXG14XFamilyCommandBuffer tryCoalescingPreviousComputeCommandEncoderWithConfig:nextEncoderClass:]:1015: failed assertion `A command encoder is already encoding to this command buffer'
2024-11-25 07:40:01.246 candle-reproducation[88968:35288312] failed assertion _status < MTLCommandBufferStatusCommitted at line 316 in -[IOGPUMetalCommandBuffer setCurrentCommandEncoder:]
2024-11-25 07:40:01.247 candle-reproducation[88968:35288372] failed assertion _status < MTLCommandBufferStatusCommitted at line 316 in -[IOGPUMetalCommandBuffer setCurrentCommandEncoder:]
2024-11-25 07:40:01.246 candle-reproducation[88968:35288313] failed assertion _status < MTLCommandBufferStatusCommitted at line 316 in -[IOGPUMetalCommandBuffer setCurrentCommandEncoder:]
...
zsh: abort cargo run
Here is the code that reproduces the issue with candle = 0.8.0 on a M2 Mac:
When trying to share a tensor between multiple threads on a metal accelerator, I get this error and then the program aborts without a panic message.
Here is the code that reproduces the issue with
candle = 0.8.0
on aM2
Mac:A full reproduction repo with the exact lock file I used is available at https://github.com/ealmloff/candle-reproducation-failed-assertion
The text was updated successfully, but these errors were encountered: