I'm currently using a MacBook Pro 14" with M1 Max, but I had the same issue on a Macbook Pro 13" IIRC it was a MacBookPro14,2 with an i5.
I've seen this issue on the latest release XCode (13.2) and also on the latest RC (13.3)
GPU trace has been attached to feedback assistant ticket FB9951648
Post
Replies
Boosts
Views
Activity
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.