Skip to content

Commit

Permalink
SPMM: Adjust maxTs if only minTs is provided
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Schuchart <[email protected]>
  • Loading branch information
devreal committed Jul 11, 2024
1 parent 99f03b6 commit ef8bd3b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/spmm/spmm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1690,6 +1690,9 @@ int main(int argc, char **argv) {
minTs = parseOption(minTsStr, 32);
std::string maxTsStr(getCmdOption(argv, argv + argc, "-T"));
maxTs = parseOption(maxTsStr, 256);
if (minTs >= maxTs) {
maxTs = minTs;
}
std::string avgStr(getCmdOption(argv, argv + argc, "-a"));
double avg = parseOption(avgStr, 0.3);
timing = (check == 0);
Expand Down

0 comments on commit ef8bd3b

Please sign in to comment.