Post

Replies

Boosts

Views

Activity

Comment on iOS Simulator running metal hangs entire OS when using discrete GPU
So I added a the #pragma unroll(1), and that has made the issue worse, it crashes with anything above 1 pass through the loop. So I did the exact reverse and changed it to #pragma unroll (40) to force it to unroll the entire loop, and now it runs without crashing. It looks like somehow the loop makes it crash. I'm still unable to reproduce it in a minimal test case though, so I'm looking further into it. I'm also seeing slightly different results from the kernels running before this one when running on the discrete GPU, investigating that as well.
Jun ’21