Skip to content

Conversation

@crcrpar
Copy link
Collaborator

@crcrpar crcrpar commented Nov 14, 2025

Enables clang-format

@crcrpar crcrpar force-pushed the github-actions-pre-commit branch from e48133d to 0a5da7d Compare November 18, 2025 15:05
@crcrpar crcrpar requested a review from Copilot November 18, 2025 17:57
Copy link
Contributor

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 implements automated code formatting for C++ and CUDA source files using pre-commit hooks. The changes are purely stylistic, standardizing code formatting across multiple files including optimizer kernels, memory management utilities, NCCL wrappers, and multihead attention implementations.

Key Changes

  • Applied consistent formatting to spacing, indentation, and line wrapping
  • Reorganized include statements and namespace declarations
  • Reformatted function signatures and template declarations
  • Standardized brace placement and control flow statement formatting

Reviewed Changes

Copilot reviewed 142 out of 196 changed files in this pull request and generated no comments.

Show a summary per file
File Description
apex/contrib/csrc/peer_memory/peer_memory.cpp Reformatted Python binding definitions with consistent line breaks
apex/contrib/csrc/optimizers/*.cu Applied uniform formatting to CUDA optimizer kernels (LAMB, Adam variants)
apex/contrib/csrc/optimizers/*.cpp Reformatted C++ interface files for optimizer kernels
apex/contrib/csrc/nccl_p2p/*.cu Standardized NCCL P2P communication code formatting
apex/contrib/csrc/nccl_p2p/*.cpp Reformatted NCCL wrapper implementations
apex/contrib/csrc/nccl_allocator/NCCLAllocator.cpp Applied consistent formatting to allocator code
apex/contrib/csrc/multihead_attn/*.cu Reformatted multihead attention CUDA kernels
apex/contrib/csrc/multihead_attn/*.cpp Standardized multihead attention frontend code
apex/contrib/csrc/multihead_attn/*.cuh Applied formatting to header files
apex/contrib/csrc/layer_norm/*.h Reformatted layer normalization trait templates

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

Copy link
Contributor

Copilot AI commented Nov 18, 2025

@crcrpar I've opened a new pull request, #1955, to work on those changes. Once the pull request is ready, I'll request review from you.

@crcrpar crcrpar marked this pull request as ready for review November 27, 2025 01:27
@crcrpar crcrpar merged commit 1f20398 into master Nov 27, 2025
1 check passed
@crcrpar crcrpar deleted the github-actions-pre-commit branch November 27, 2025 03:56
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