Post

Replies

Boosts

Views

Activity

Reply to iOS Simulator running metal hangs entire OS when using discrete GPU
I tried creating a minimal test case, but couldn’t reproduce it, so I did some more digging. The atomic add is called inside a loop. The loop runs 40 times. I reduced it to only loop once and this works without crashes. I then increased it step-by-step and it crashes if it loops more than 16 times. It seems to be purely the run time of the kernel that causes the freeze. Strangely enough the same loop takes much longer on the integrated GPU but this doesn’t cause any issues. Why would this cause a hang ? The difference in timing between 16 or 17 runs is minimal, and the integrated GPU has no issues while taking 20 times longer.
Jun ’21