Hi everyone. I've got some logic running over points. That logic involves accessing neighbor points and setting some attributes. If I use GA_SplittableRange that causes race condition in this situation so my idea is to split point cloud to n-groups(~threads count), run them in parallel and then do some logic as a final step.
I came across UT_TaskGroup(). Is that one way of doing it ?
Thank you.
Multithreading over point groups(one thread - one group)
106 1 0-
- maxpayne
- Member
- 49 posts
- Joined: Dec. 2010
- Offline
-
- johnmather
- Staff
- 709 posts
- Joined: Aug. 2019
- Offline
Be sure to check this page: https://www.sidefx.com/docs/hdk/_h_d_k__g_a__using.html#HDK_GA_Using_Parallel [www.sidefx.com]
For foreach-style algorithms, the simplest approach is to use GAparallelForEachPage() which provides a higher-level API that is convenient to use with lambdas.
-
- Quick Links

