Skip to content

Commit

Permalink
fix thread block size
Browse files Browse the repository at this point in the history
  • Loading branch information
DesmonDay committed Aug 11, 2022
1 parent 36d1eab commit 50bf7da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddle/phi/kernels/gpu/graph_send_ue_recv_funcs.h
Expand Up @@ -54,8 +54,8 @@ inline int FindNumThreads(int dim, int max_num_threads) {
0,
phi::errors::PreconditionNotMet(
"Required dim >= 0, but received dim = %d", dim));
if (dim == 0) return 1;
int res = max_num_threads;
if (dim == 0) res = 1;
while (res > dim) {
res = res >> 1;
}
Expand Down

0 comments on commit 50bf7da

Please sign in to comment.