-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add GitHub Actions workflow for pre-commit checks #1949
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
Conversation
Signed-off-by: Masaki Kozuki <[email protected]>
Signed-off-by: Masaki Kozuki <[email protected]>
e48133d to
0a5da7d
Compare
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.
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.
Signed-off-by: Masaki Kozuki <[email protected]>
Signed-off-by: Masaki Kozuki <[email protected]>
Enables clang-format