Handling Dependencies During every iteration,each thread can overwrite the input of another thread Barrier synchronization to ensure all inputs have been properly generated All threads secure input operand that can be overwritten by another thread Barrier synchronization is required to ensure that all threads have secured their inputs -All threads perform addition and write output XY 3 3 STRIDE XY 8 ITERATION =1 STRIDE 1 例 电子神越女学 O16 Handling Dependencies – During every iteration, each thread can overwrite the input of another thread – Barrier synchronization to ensure all inputs have been properly generated – All threads secure input operand that can be overwritten by another thread – Barrier synchronization is required to ensure that all threads have secured their inputs – All threads perform addition and write output XY 3 4 8 7 4 5 7 9 XY 3 1 7 0 4 1 6 3 ITERATION = 1 STRIDE = 1 STRIDE 1