Unverified Commit 3ad9db2a authored by eqy's avatar eqy Committed by GitHub
Browse files

check in (#1187)

parent 5adf7bc2
...@@ -651,6 +651,8 @@ void cuComputeGradInput( ...@@ -651,6 +651,8 @@ void cuComputeGradInput(
k_grad_input[l] = static_cast<T>(f_grad_input); k_grad_input[l] = static_cast<T>(f_grad_input);
} }
} }
// prevent race where buf is written again before reads are done
__syncthreads();
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment