can I manage cuda threads through main function after they have been dispatched? ( I feel that it’s a stupid question, but I have to ask)
another question, what happens if two threads were accessing the same element in a global or shared memory array at the same time? this should introduce a RAW hazard right? is there anyway I can force mutual exclusion?