Can multiple threads write to the same global memory location without using atomics ASSUMING I do not care which thread’s data is actually written in the end?
In particular I want multiple threads to be able to set something (unsigned int) to true. I do not care who set it and multiple threads might try set it. I simply want to know if someone or no one tried to set it at all. I assume since this is simply a 4-byte store nothing too funny will happen.
Also, is this deterministic? Obviously it is chaotic as to who’s value will get written in the end, but for the same kernel/starting conditions will it always be the same thread to “win”?