Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Perftest: Fix average BW calculation bug
As part of the gap_cycles calculation inside run_iter_bw, Perftest calculate number_of_bursts. when using SW_RATE_LIMIT with rate_limit smaller than the message size we can get into a scenario where number_of_bursts equal 0 because its an unsigned int. this commit fix this problem by changing number_of_bursts into double and allows it to be fraction. this also increase the accurate of the calculation. Signed-off-by: Shmuel Shaul <sshaul@nvidia.com>
- Loading branch information
1ef49c4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for finding & fixing it!