| 282 | } |
| 283 | |
| 284 | DEVICE void check_phase(int val) { |
| 285 | if (threadIdx.x % WARP_GROUP_SIZE == 0) { |
| 286 | printf("round %d group %d phase is %d\n", val, |
| 287 | threadIdx.x / WARP_GROUP_SIZE, stage_.phase()); |
| 288 | } |
| 289 | } |
| 290 | |
| 291 | // Signal completion of Stage and move to the next stage |
| 292 | // (group_id) signals to (group_id+1) |