Skip to content

Adding maxSpinCount to port channel flush #518

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 9, 2025
Merged

Conversation

Binyang2014
Copy link
Contributor

Fix #482

@Binyang2014
Copy link
Contributor Author

/azp run

@Binyang2014 Binyang2014 requested a review from Copilot May 5, 2025 17:11
Copy link

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes issue #482 by adding a configurable maxSpinCount parameter to flush-related functions.

  • Updated the putWithSignalAndFlush methods in both BasePortChannelDeviceHandle and PortChannelDeviceHandle to accept a maxSpinCount parameter.
  • Updated the flush method to use the new maxSpinCount parameter.
Comments suppressed due to low confidence (1)

include/mscclpp/port_channel_device.hpp:149

  • Please update the function documentation to describe the new 'maxSpinCount' parameter and its expected impact on flush behavior.
MSCCLPP_DEVICE_INLINE void putWithSignalAndFlush(MemoryId dst, uint64_t dstOffset, MemoryId src, uint64_t srcOffset, uint64_t size, int64_t maxSpinCount = 1000000) {

@Binyang2014 Binyang2014 marked this pull request as ready for review May 5, 2025 23:16
@Binyang2014
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

Copy link
Contributor

@chhwang chhwang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chhwang chhwang merged commit a464b9f into main May 9, 2025
14 checks passed
@chhwang chhwang deleted the binyli/maxSpinCount branch May 9, 2025 04:24
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.

[Feature] Adding maxSpinCount to port channel flush
2 participants