Skip to content

fix: sync paddle patch#3

Merged
gouzil merged 1 commit into
paddlefrom
fix/sync_paddle_patch
Jun 4, 2026
Merged

fix: sync paddle patch#3
gouzil merged 1 commit into
paddlefrom
fix/sync_paddle_patch

Conversation

@gouzil

@gouzil gouzil commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

fix

  • 直接同步 paddle 仓库的 patch,避免二次 patch

Copilot AI review requested due to automatic review settings June 4, 2026 09:00
@gouzil gouzil merged commit 54953de into paddle Jun 4, 2026

Copilot AI left a comment

Copy link
Copy Markdown

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 syncs a patch from the Paddle repository to avoid maintaining a downstream re-patch, touching low-level numeric conversion code and Linux network/ethtool plumbing.

Changes:

  • Updates cpu_half2float implementation in gloo/types.h.
  • Adjusts TCP device hostname handling includes (adds <array>).
  • Modifies the ETHTOOL_GLINKSETTINGS request buffer layout in gloo/common/linux.cc.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
gloo/types.h Changes how half-precision values are converted to float on CPU.
gloo/transport/tcp/device.cc Adds missing <array> include for std::array hostname buffer usage.
gloo/common/linux.cc Alters the in-memory layout of the ioctl request buffer for ETHTOOL_GLINKSETTINGS.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread gloo/types.h
Comment on lines 321 to +323
unsigned temp = ((sign << 31) | (exponent << 23) | mantissa);

void* rp = &temp;
return *(float*)rp;
return (float)temp;
Comment thread gloo/common/linux.cc
Comment on lines 189 to 193
constexpr auto link_mode_data_nwords = 3 * 127;
struct {
struct ethtool_link_settings req;
__u32 link_mode_data[link_mode_data_nwords];
struct ethtool_link_settings req;
} ecmd;
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