-
The Line 193 in 117e135 If I remove the (I'm asking this because it seems that with CUDA's synchronization library the only way to implement |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
We don't use the value anymore.. that is a recent change though. I preserved the ability to set the value since it could be useful if we want to switch to more fine-grained synchronization (for example synchronizing on individual arrays rather than the entire graph). You should be able to implement it with the value using atomic wait and notify. The thread that's waiting has to atomically check if the current value is greater or equal to it's required value before it can stop waiting. |
Beta Was this translation helpful? Give feedback.
We don't use the value anymore.. that is a recent change though. I preserved the ability to set the value since it could be useful if we want to switch to more fine-grained synchronization (for example synchronizing on individual arrays rather than the entire graph).
You should be able to implement it with the value using atomic wait and notify. The thread that's waiting has to atomically check if the current value is greater or equal to it's required value before it can stop waiting.