Skip to content

chore: fix Apache-2.0 license notice and attribution gaps - #2605

Open
rparolin wants to merge 1 commit into
NVIDIA:mainfrom
rparolin:chore/apache-2.0-license-compliance
Open

chore: fix Apache-2.0 license notice and attribution gaps#2605
rparolin wants to merge 1 commit into
NVIDIA:mainfrom
rparolin:chore/apache-2.0-license-compliance

Conversation

@rparolin

@rparolin rparolin commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator

Description

An open-source license review flagged four Apache-2.0 compliance gaps. This fixes three of them, plus the guard that let one class of them through. Licensing metadata only — no logic changes.

1. Copyright notices (15 files). Two defects with the same symptom:

  • 14 files in cuda_bindings/examples/ read Copyright 2021-2026 NVIDIA Corporation. All rights reserved. — no (c), no SPDX-FileCopyrightText: prefix, wrong entity casing.
  • toolshed/conda_create_for_pathfinder_testing.ps1 had the right prefix and casing but stopped before & AFFILIATES. All rights reserved.

All now use the required string. Years preserved as found.

2. The header guard (toolshed/check_spdx.py). Its regex made & AFFILIATES. All rights reserved. optional, so a bare NVIDIA CORPORATION passed pre-commit. Now required.

Two notes for reviewers:

  • The 14 example files were passing for a different reason — .spdx-ignore excludes cuda_bindings/examples/ entirely. I left that exclusion alone, but those files now conform, so it can be dropped in a follow-up if you want them guarded.
  • Tightening the regex surfaced two pre-existing files whose notice was split across lines or truncated: cuda_core/cuda/core/_include/layout.hpp and toolshed/build_static_bitcode_input.py. Both fixed so the sentence appears verbatim on one line.

3. Third-party attribution (cuda_core/NOTICE). cuda/core/_include/aoti_shim.h is a vendored subset of PyTorch's AOT Inductor stable C ABI (BSD-3-Clause, with upstream Facebook/Idiap/Deepmind/NEC/NYU copyright lines), but NOTICE listed only DLPack. Added a PyTorch entry with the full copyright block.

aoti_shim.def has no copyright line of its own. It's covered by that NOTICE entry rather than given an NVIDIA header, since it declares the same upstream symbol names.

4. LICENSE files (all five). Each ended at END OF TERMS AND CONDITIONS, omitting the required APPENDIX: How to apply the Apache License to your work and its boilerplate. Appended to all five; text verified identical to the canonical Apache 2.0 appendix.

Not addressed here: the four sub-component LICENSE files (cuda_core/, cuda_bindings/, cuda_python/, cuda_pathfinder/) duplicate the root one. That needs a decision — delete them, or reference each from the root README — so it's left for a separate PR.

There is no linked issue for this; it came out of a license review rather than a bug report.

🤖 Generated with Claude Code

An open-source license review flagged several Apache-2.0 compliance gaps.
This addresses three of them, plus the guard that let one class of them
through. Licensing metadata only; no logic changes.

Copyright notices (15 files)
  Two different defects that happened to share a symptom:
  - 14 files under cuda_bindings/examples/ carried a non-standard notice
    ("Copyright 2021-2026 NVIDIA Corporation.  All rights reserved.") with
    no (c), no SPDX-FileCopyrightText prefix, and the wrong entity casing.
  - toolshed/conda_create_for_pathfinder_testing.ps1 had the correct prefix
    and casing but was truncated before "& AFFILIATES. All rights reserved.".
  All now carry the canonical string. Years are preserved as found.

Header guard (toolshed/check_spdx.py)
  COPYRIGHT_REGEX made "& AFFILIATES. All rights reserved." optional, so a
  bare "NVIDIA CORPORATION" satisfied pre-commit. The suffix is now
  required. (The 14 example files were passing for a different reason:
  .spdx-ignore excludes cuda_bindings/examples/ entirely. That exclusion is
  left alone here, but the files now conform, so it can be dropped in a
  follow-up if desired.)

  Tightening the regex surfaced two pre-existing files whose notice was
  split or truncated -- cuda_core/cuda/core/_include/layout.hpp and
  toolshed/build_static_bitcode_input.py. Both are corrected so the
  mandated sentence appears verbatim on one line.

Third-party attribution (cuda_core/NOTICE)
  cuda/core/_include/aoti_shim.h is a vendored subset of PyTorch's AOT
  Inductor stable C ABI, BSD-3-Clause, carrying the upstream Facebook,
  Idiap, Deepmind, NEC and NYU copyright lines, but NOTICE listed only
  DLPack. A PyTorch entry is added with the full copyright block. The
  accompanying aoti_shim.def carries no copyright line of its own and is
  covered explicitly by that entry rather than given an NVIDIA header,
  since it declares the same upstream symbol names. The DLPack entry now
  also records where it is vendored.

LICENSE files (all five)
  Every LICENSE ended at "END OF TERMS AND CONDITIONS", omitting the
  required "APPENDIX: How to apply the Apache License to your work" and
  its boilerplate. Appended to all five. The text is verified identical
  to the canonical Apache 2.0 appendix.

Verified: 0 files with a non-conforming copyright string; check_spdx.py
passes over all 868 in-scope tracked files with the tightened regex.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Rob Parolin <rparolin@nvidia.com>
@github-actions github-actions Bot added cuda.bindings Everything related to the cuda.bindings module cuda.core Everything related to the cuda.core module cuda.pathfinder Everything related to the cuda.pathfinder module labels Aug 12, 2026
@rparolin
rparolin requested a review from mdboom August 12, 2026 00:42
@rparolin rparolin added this to the cuda.core 1.2.0 milestone Aug 12, 2026
@rparolin rparolin self-assigned this Aug 12, 2026
@rparolin rparolin added the P0 High priority - Must do! label Aug 12, 2026
@github-actions

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cuda.bindings Everything related to the cuda.bindings module cuda.core Everything related to the cuda.core module cuda.pathfinder Everything related to the cuda.pathfinder module P0 High priority - Must do!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant