Jump to content
  • Advertisement
Sign in to follow this  
knu_revo

Metal - not understanding thread dispatch

This topic is 1163 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!