Say, If one thread has met the condition to abort the calculations - all other threads from all blocks in grid should also stop. How to do it ?
Here is the link on the topic with similar question with details:
However, no concrete answer has been given. Mr. Mark Harris even promised to give some pseudocode, but for some reason he did not.
The guy who asked the question has posted a number of possible answers with reasonable doubts if they are efficient, it would be greate to know the solution that won’t waste the performance.
Thanks in advcance.