Grid Stride Loops in Thrust


I would like to use Grid Stride Loop to ensure my parallel kernel launches (each in separate streams) have better guarantee of running simultaneously. Is Thrust for_each using Grid Stride Loops? If it’s not, is there a way to configure it to do so?

Many Thanks,


Please correct me if I am wrong, It looks like it’s already doing Grid Stride Loop: