-
Notifications
You must be signed in to change notification settings - Fork 62
License Headers Fix #2466
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
base: main
Are you sure you want to change the base?
License Headers Fix #2466
Conversation
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 introduces automated license header management across the repository by implementing a fixheaders tool and applying standardized license headers to files.
Key Changes:
- Added Intel Corporation copyright headers (2025) with Apache-2.0 license to all source files
- Included dual licensing for files derived from third-party sources (PyTorch, Torchvision, Codeplay)
- Applied headers to C/C++, CUDA, YAML, and CMake files
Reviewed changes
Copilot reviewed 300 out of 897 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/ATen/native/xpu/sycl/*.{h,cpp} | Added Intel copyright headers to SYCL kernel implementations |
| src/ATen/native/xpu/mkl/*.{h,cpp} | Added Intel copyright headers to oneMKL wrapper implementations |
| src/ATen/native/xpu/*.cpp | Added Intel copyright headers to XPU native operations |
| src/ATen/native/transformers/**/*.{h,cpp} | Added Intel copyright headers with Codeplay dual licensing where applicable |
| src/ATen/native/sparse/xpu/**/*.{h,cpp} | Added Intel copyright headers to sparse tensor implementations |
| src/ATen/native/quantized/**/*.{h,cpp} | Added Intel copyright headers to quantization implementations |
| src/ATen/native/nested/**/*.cpp | Added Intel copyright headers to nested tensor implementations |
| cmake/**/*.cmake | Added Intel copyright headers to CMake configuration files |
| CMakeLists.txt, src/ATen/CMakeLists.txt | Added Intel copyright headers to build configuration |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
ee251b0 to
b6fb42e
Compare
riverliuintel
left a comment
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.
For intel license header, please use https://github.com/intel/torch-xpu-ops/blob/main/LICENSE#L190
be434d1 to
3dcbad9
Compare
3dcbad9 to
6df8a89
Compare
|
Hi @riverliuintel. I've updated the Intel license headers according to your suggestion from https://github.com/intel/torch-xpu-ops/blob/main/LICENSE#L190. Failing TC is:
It's unrelated to this PR, it was enabled few days ago with this PR: pytorch/pytorch#167057 |
Introduces fixheaders, a tool for automated license header management across the repository + fixes license issues.
Key Features
Usage
cd tools/fixheaders; ./run.sh
Pre-Release Process