Skip to content

Commit 07d8a9f

Browse files
authored
Merge pull request #1855 from CEED/zach/fix-flops
Fix grad basis flop counts
2 parents f1f13db + 27a8a65 commit 07d8a9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/ceed-basis.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@ int CeedBasisGetFlopsEstimate(CeedBasis basis, CeedTransposeMode t_mode, CeedEva
941941
CeedInt inner_flops =
942942
dim * (2 * Q_1d * Q_1d + (t_mode == CEED_TRANSPOSE ? 2 : 3) * Q_1d) + (dim - 1) * (2 * chebyshev_flops + d_chebyshev_flops);
943943

944-
*flops += num_points * Q_1d * (chebyshev_flops + d_chebyshev_flops) * num_comp * (inner_flops + (t_mode == CEED_TRANSPOSE ? 1 : 0));
944+
*flops += num_points * Q_1d * (chebyshev_flops + d_chebyshev_flops + num_comp * (inner_flops + (t_mode == CEED_TRANSPOSE ? 1 : 0)));
945945
} else {
946946
*flops += num_points * (is_gpu ? num_comp : 1) * dim * (d_chebyshev_flops + (dim - 1) * chebyshev_flops);
947947
}

0 commit comments

Comments
 (0)