Sign in to follow this  
knu_revo

Metal - not understanding thread dispatch

Recommended Posts

Hello, the workings of dispatchThreadGroups is not clicking for me. I have a tasks that I'd like to add two arrays (each of size 8) together. If I set 4 threads for 2 thread groups, only half of my array is executed. The same if set 8 threads for 1 thread group. I don't understand why I need 2 thread groups of 8 threads each to get all results written. That should result in a segment fault, no?

 

ED0nPPg.png

 

i3qOlFp.png

 

KELwThm.png

Edited by knu_revo

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this