Skip to content

Conversation

@agalanin-at-nvidia
Copy link

Description

Use proper multiplier while converting HCA core clock frequency into Hz.

What

Fix IB clock converter inaccuracy

Why ?

Invalid value for hca core clock frequency was used in time_converter_ib_ctx::calculate_delta.

How ?

We used hca_core_clock for clock conversion from HW timestamp to system clock. But the value for hca_core_clock variable is converted from device capabilities as it's in MHz (multiplied to 1000000=USEC_PER_SEC). That's look wrong because ibv_device_attr_ex.hca_core_clock is in Khz.

Change type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Tests
  • Other

Check list

  • [+] Code follows the style de facto guidelines of this project
  • [+] Comments have been inserted in hard to understand places
  • [-] Documentation has been updated (if necessary)
  • [-] Test has been added (if possible)

Invalid value for hca core clock frequency was used in
time_converter_ib_ctx::calculate_delta.

Signed-off-by: Alexander Galanin <[email protected]>
@swx-jenkins5
Copy link

Can one of the admins verify this patch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants