You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In many places, KokkosKernels calculates the league size as num_rows / rows_per_team + 1. In most cases this is exactly correct, but if rows_per_team divides num_rows evenly then the number of teams is 1 greater than needed. I'm sure the runtime overhead for one extra team that returns immediately is very small, but I propose that we fix this by changing these to (num_rows + rows_per_team - 1) / rows_per_team). That is equivalent to ceil((double) num_rows / rows_per_team).
The text was updated successfully, but these errors were encountered:
In many places, KokkosKernels calculates the league size as
num_rows / rows_per_team + 1
. In most cases this is exactly correct, but ifrows_per_team
dividesnum_rows
evenly then the number of teams is 1 greater than needed. I'm sure the runtime overhead for one extra team that returns immediately is very small, but I propose that we fix this by changing these to(num_rows + rows_per_team - 1) / rows_per_team)
. That is equivalent toceil((double) num_rows / rows_per_team)
.The text was updated successfully, but these errors were encountered: