Is there a way to put an eligible warp into stall/sleep/suspension? By eligible, I mean a warp that can issue instruction.
I have an application where the warps need to wait for a flag (which is unique for each warp) before they can proceed. One naive solution is to busy wait on the flag, but this wastes GPU’s resources which otherwise could be used by other warps for useful operations. Thus, I am looking for a way to periodically stall the warp until its flag is set.