diff --git a/CMakeLists.txt b/CMakeLists.txt
index 357f7969b..ee7f4ca15 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: MIT
+
cmake_minimum_required(VERSION 3.23)
project(cudnn_frontend VERSION 1.27.0)
diff --git a/LICENSE-MIT.txt b/LICENSE-MIT.txt
new file mode 100644
index 000000000..b70c87aa7
--- /dev/null
+++ b/LICENSE-MIT.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2020-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the "Software"),
+to deal in the Software without restriction, including without limitation
+the rights to use, copy, modify, merge, publish, distribute, sublicense,
+and/or sell copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
diff --git a/LICENSE.txt b/LICENSE.txt
index eef9c4461..6c309c6a5 100644
--- a/LICENSE.txt
+++ b/LICENSE.txt
@@ -1,21 +1,205 @@
-/*
- * Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
+Copyright (c) 2020-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
diff --git a/LICENSING.md b/LICENSING.md
new file mode 100644
index 000000000..647c9d807
--- /dev/null
+++ b/LICENSING.md
@@ -0,0 +1,147 @@
+# Licensing
+
+cudnn-frontend is distributed primarily under the **Apache License 2.0**
+(see [LICENSE.txt](LICENSE.txt)). A subset of files remain under the **MIT
+License** (see [LICENSE-MIT.txt](LICENSE-MIT.txt)). Every source file carries
+an SPDX `SPDX-License-Identifier:` tag declaring which license applies to it.
+
+To find the license of any file, read its SPDX tag, e.g.:
+
+```
+SPDX-License-Identifier: Apache-2.0 # most files
+SPDX-License-Identifier: MIT # the files listed below
+```
+
+Third-party attributions are in [THIRD_PARTY_LICENSES.txt](THIRD_PARTY_LICENSES.txt).
+
+## Why some files remain under MIT
+
+The repository's original license was MIT. During the MIT → Apache 2.0
+relicensing ([PR #408](https://github.com/NVIDIA/cudnn-frontend/pull/408),
+sign-off [issue #431](https://github.com/NVIDIA/cudnn-frontend/issues/431)),
+files were converted to Apache 2.0 **only** when all of their surviving code is
+owned by NVIDIA. Files are kept under MIT in two cases:
+
+1. **Pending external-contributor consent** — the file contains code
+ contributed by a non-NVIDIA contributor whose consent to relicense has not
+ (yet) been obtained. Determined by `git blame` on `develop`: a file stays
+ MIT if any external contributor's lines survive in it.
+2. **Third-party-derived code** — the file is derived from external open
+ source (FlashAttention, QuACK) and carries the original author's copyright.
+
+If/when a listed external contributor grants consent, the files attributed to
+them below can be moved to Apache 2.0 by flipping their SPDX tag.
+
+The **Introducing commit(s)** column links the exact commit that introduced the
+surviving external line(s) in each file (blame on `origin/develop`).
+
+## Category 1 — MIT pending external-contributor consent (63 files)
+
+| File | External contributor(s) | Introducing commit(s) |
+|------|-------------------------|-----------------------|
+| `CMakeLists.txt` | Connor Baker (@ConnorBaker) | [`0f828cf`](https://github.com/NVIDIA/cudnn-frontend/commit/0f828cf169b39c5d3afc9bb2aeb042f275e69320) (#125) |
+| `benchmark/bench_moe.py` | Minh Vu (@fallintoplace) | [`82602db`](https://github.com/NVIDIA/cudnn-frontend/commit/82602db1bc32c7b9010bfa575c40d1933973f9cc) (#348) |
+| `cmake/cuDNN.cmake` | Takeshi Watanabe (@take-cheeze) | [`436643d`](https://github.com/NVIDIA/cudnn-frontend/commit/436643de5c0d67bacab2b7af04c5ec29f6b18a91) (#182), [`363e807`](https://github.com/NVIDIA/cudnn-frontend/commit/363e80717b7b2a690019adf0122429eb9ce85148) (#180) |
+| `cudnn_frontend-config.cmake.in` | Connor Baker (@ConnorBaker) | [`0f828cf`](https://github.com/NVIDIA/cudnn-frontend/commit/0f828cf169b39c5d3afc9bb2aeb042f275e69320) (#125) |
+| `dlpack_version.txt` | Emilien Macchi (@EmilienM) | [`1669048`](https://github.com/NVIDIA/cudnn-frontend/commit/1669048643384e2dab17aa69db196c09d67880e3) (#165) |
+| `include/cudnn_frontend/graph_properties.h` | Subhobrata Dey (@sbcd90) | [`6943af9`](https://github.com/NVIDIA/cudnn-frontend/commit/6943af90f98c6f8a726283b61240eacfca7fcea1) (#214) |
+| `include/cudnn_frontend/node/block_scale_quantize.h` | Dimitar Asenov (@dimitar-asenov) | [`1bf85c3`](https://github.com/NVIDIA/cudnn-frontend/commit/1bf85c3b50cc25412edfffb9573cd948e43b4095) (#319) |
+| `include/cudnn_frontend/node/matmul.h` | James Y Knight (@jyknight) | [`af9bc9e`](https://github.com/NVIDIA/cudnn-frontend/commit/af9bc9e88be17693d5841876e8f2f69a279c7ff7) (#56) |
+| `include/cudnn_frontend/node/pointwise.h` | James Y Knight (@jyknight) | [`af9bc9e`](https://github.com/NVIDIA/cudnn-frontend/commit/af9bc9e88be17693d5841876e8f2f69a279c7ff7) (#56) |
+| `include/cudnn_frontend/node/reduction.h` | James Y Knight (@jyknight) | [`af9bc9e`](https://github.com/NVIDIA/cudnn-frontend/commit/af9bc9e88be17693d5841876e8f2f69a279c7ff7) (#56) |
+| `include/cudnn_frontend/node/reshape.h` | James Y Knight (@jyknight) | [`af9bc9e`](https://github.com/NVIDIA/cudnn-frontend/commit/af9bc9e88be17693d5841876e8f2f69a279c7ff7) (#56) |
+| `include/cudnn_frontend/node/rng.h` | James Y Knight (@jyknight) | [`af9bc9e`](https://github.com/NVIDIA/cudnn-frontend/commit/af9bc9e88be17693d5841876e8f2f69a279c7ff7) (#56) |
+| `include/cudnn_frontend/node/softmax.h` | James Y Knight (@jyknight) | [`af9bc9e`](https://github.com/NVIDIA/cudnn-frontend/commit/af9bc9e88be17693d5841876e8f2f69a279c7ff7) (#56) |
+| `include/cudnn_frontend/node_interface.h` | James Y Knight (@jyknight) | [`af9bc9e`](https://github.com/NVIDIA/cudnn-frontend/commit/af9bc9e88be17693d5841876e8f2f69a279c7ff7) (#56) |
+| `include/cudnn_frontend_utils.h` | Martin Valgur (@valgur) | [`31b2c5d`](https://github.com/NVIDIA/cudnn-frontend/commit/31b2c5dfcd1a4d50340819e7dfc2c8671b8ad0c2) (#154) |
+| `python/CMakeLists.txt` | Connor Baker (@ConnorBaker)
Emilien Macchi (@EmilienM)
Jun Zhang (@junaire) | [`0f828cf`](https://github.com/NVIDIA/cudnn-frontend/commit/0f828cf169b39c5d3afc9bb2aeb042f275e69320) (#125)
[`1669048`](https://github.com/NVIDIA/cudnn-frontend/commit/1669048643384e2dab17aa69db196c09d67880e3) (#165)
[`019bab6`](https://github.com/NVIDIA/cudnn-frontend/commit/019bab67ed175ed8dca6db217f8bdaad457c13bc) (#90) |
+| `python/cudnn/deepseek_sparse_attention/indexer_top_k/indexer_top_k_decode_varlen.py` | Haisha Zhao (@Hyaloid) | [`07b368a`](https://github.com/NVIDIA/cudnn-frontend/commit/07b368a2696f5fd0fc2207d4635c51cea4c0bf71) (#312) |
+| `python/cudnn/deepseek_sparse_attention/indexer_top_k/indexer_top_k_varlen_util.py` | Haisha Zhao (@Hyaloid)
JackRao123 (@JackRao123) | [`07b368a`](https://github.com/NVIDIA/cudnn-frontend/commit/07b368a2696f5fd0fc2207d4635c51cea4c0bf71) (#312)
[`52ce3e3`](https://github.com/NVIDIA/cudnn-frontend/commit/52ce3e37057baaba27bf436122ad1606acadd059) (#407) |
+| `python/cudnn/deepseek_sparse_attention/score_recompute/sparse_score_recompute_sm100.py` | Hollow Man (@HollowMan6) | [`0518565`](https://github.com/NVIDIA/cudnn-frontend/commit/051856567cbf2fd543811aab866e8e27f3fe1fe7) (#317) |
+| `python/cudnn/deepseek_sparse_attention/sparse_attention_backward/dsa_bwd_sm100.py` | zky (@zkyue)
Zhenyu (@szluyu99) | [`3772b8b`](https://github.com/NVIDIA/cudnn-frontend/commit/3772b8b8f85239c5c5bcbfbf5f8f2519a68a4cdb) (#395), [`6c577ac`](https://github.com/NVIDIA/cudnn-frontend/commit/6c577acff7ab7f970bc414d0141af3efc5ee795b) (#396)
[`91bebc8`](https://github.com/NVIDIA/cudnn-frontend/commit/91bebc8aef59722c21b39391ea5c16ed3583d959) (#331) |
+| `python/cudnn/grouped_gemm/grouped_gemm_quant/api.py` | Ziang Li (@zianglih) | [`02d2471`](https://github.com/NVIDIA/cudnn-frontend/commit/02d2471d15930ca1cc2aea838542429635342fe2) |
+| `python/cudnn/grouped_gemm/grouped_gemm_quant/grouped_gemm_quant.py` | Ziang Li (@zianglih) | [`02d2471`](https://github.com/NVIDIA/cudnn-frontend/commit/02d2471d15930ca1cc2aea838542429635342fe2) |
+| `python/cudnn/grouped_gemm/moe_sched_extension.py` | Ziang Li (@zianglih) | [`02d2471`](https://github.com/NVIDIA/cudnn-frontend/commit/02d2471d15930ca1cc2aea838542429635342fe2) |
+| `samples/CMakeLists.txt` | Jun Zhang (@junaire) | [`019bab6`](https://github.com/NVIDIA/cudnn-frontend/commit/019bab67ed175ed8dca6db217f8bdaad457c13bc) (#90) |
+| `samples/cpp/CMakeLists.txt` | Connor Baker (@ConnorBaker) | [`0f828cf`](https://github.com/NVIDIA/cudnn-frontend/commit/0f828cf169b39c5d3afc9bb2aeb042f275e69320) (#125) |
+| `samples/cpp/convolution/dgrads.cpp` | Connor Baker (@ConnorBaker) | [`0f828cf`](https://github.com/NVIDIA/cudnn-frontend/commit/0f828cf169b39c5d3afc9bb2aeb042f275e69320) (#125) |
+| `samples/cpp/convolution/fp8_fprop.cpp` | Connor Baker (@ConnorBaker) | [`0f828cf`](https://github.com/NVIDIA/cudnn-frontend/commit/0f828cf169b39c5d3afc9bb2aeb042f275e69320) (#125) |
+| `samples/cpp/convolution/fprop.cpp` | Connor Baker (@ConnorBaker) | [`0f828cf`](https://github.com/NVIDIA/cudnn-frontend/commit/0f828cf169b39c5d3afc9bb2aeb042f275e69320) (#125) |
+| `samples/cpp/convolution/int8_fprop.cpp` | Connor Baker (@ConnorBaker) | [`0f828cf`](https://github.com/NVIDIA/cudnn-frontend/commit/0f828cf169b39c5d3afc9bb2aeb042f275e69320) (#125) |
+| `samples/cpp/convolution/wgrads.cpp` | Connor Baker (@ConnorBaker) | [`0f828cf`](https://github.com/NVIDIA/cudnn-frontend/commit/0f828cf169b39c5d3afc9bb2aeb042f275e69320) (#125) |
+| `samples/cpp/matmul/blackwell_nvfp4_mxfp8_block_scale_matmul.cpp` | haowen-han (@haowen-han) | [`c6011ef`](https://github.com/NVIDIA/cudnn-frontend/commit/c6011ef5cebfcb3d6ad785a7baccf170d27c3245) (#223) |
+| `samples/cpp/matmul/fp8_matmul.cpp` | Connor Baker (@ConnorBaker) | [`0f828cf`](https://github.com/NVIDIA/cudnn-frontend/commit/0f828cf169b39c5d3afc9bb2aeb042f275e69320) (#125) |
+| `samples/cpp/matmul/int8_matmul.cpp` | Connor Baker (@ConnorBaker) | [`0f828cf`](https://github.com/NVIDIA/cudnn-frontend/commit/0f828cf169b39c5d3afc9bb2aeb042f275e69320) (#125) |
+| `samples/cpp/matmul/matmuls.cpp` | Connor Baker (@ConnorBaker) | [`0f828cf`](https://github.com/NVIDIA/cudnn-frontend/commit/0f828cf169b39c5d3afc9bb2aeb042f275e69320) (#125) |
+| `samples/cpp/matmul/mixed_matmul.cpp` | Connor Baker (@ConnorBaker) | [`0f828cf`](https://github.com/NVIDIA/cudnn-frontend/commit/0f828cf169b39c5d3afc9bb2aeb042f275e69320) (#125) |
+| `samples/cpp/misc/pointwise.cpp` | Connor Baker (@ConnorBaker) | [`0f828cf`](https://github.com/NVIDIA/cudnn-frontend/commit/0f828cf169b39c5d3afc9bb2aeb042f275e69320) (#125) |
+| `samples/cpp/misc/resample.cpp` | Connor Baker (@ConnorBaker) | [`0f828cf`](https://github.com/NVIDIA/cudnn-frontend/commit/0f828cf169b39c5d3afc9bb2aeb042f275e69320) (#125) |
+| `samples/cpp/misc/serialization.cpp` | Connor Baker (@ConnorBaker) | [`0f828cf`](https://github.com/NVIDIA/cudnn-frontend/commit/0f828cf169b39c5d3afc9bb2aeb042f275e69320) (#125) |
+| `samples/cpp/misc/slice.cpp` | Connor Baker (@ConnorBaker) | [`0f828cf`](https://github.com/NVIDIA/cudnn-frontend/commit/0f828cf169b39c5d3afc9bb2aeb042f275e69320) (#125) |
+| `samples/cpp/misc/sm_carveout.cpp` | Connor Baker (@ConnorBaker) | [`0f828cf`](https://github.com/NVIDIA/cudnn-frontend/commit/0f828cf169b39c5d3afc9bb2aeb042f275e69320) (#125) |
+| `samples/cpp/norm/batchnorm.cpp` | Connor Baker (@ConnorBaker) | [`0f828cf`](https://github.com/NVIDIA/cudnn-frontend/commit/0f828cf169b39c5d3afc9bb2aeb042f275e69320) (#125) |
+| `samples/cpp/norm/layernorm.cpp` | Connor Baker (@ConnorBaker) | [`0f828cf`](https://github.com/NVIDIA/cudnn-frontend/commit/0f828cf169b39c5d3afc9bb2aeb042f275e69320) (#125) |
+| `samples/cpp/norm/rmsnorm.cpp` | Connor Baker (@ConnorBaker) | [`0f828cf`](https://github.com/NVIDIA/cudnn-frontend/commit/0f828cf169b39c5d3afc9bb2aeb042f275e69320) (#125) |
+| `samples/cpp/sdpa/fp16_bwd.cpp` | Connor Baker (@ConnorBaker) | [`0f828cf`](https://github.com/NVIDIA/cudnn-frontend/commit/0f828cf169b39c5d3afc9bb2aeb042f275e69320) (#125) |
+| `samples/cpp/sdpa/fp16_bwd_with_cudagraphs.cpp` | Connor Baker (@ConnorBaker) | [`0f828cf`](https://github.com/NVIDIA/cudnn-frontend/commit/0f828cf169b39c5d3afc9bb2aeb042f275e69320) (#125) |
+| `samples/cpp/sdpa/fp16_bwd_with_flexible_graphs.cpp` | Connor Baker (@ConnorBaker) | [`0f828cf`](https://github.com/NVIDIA/cudnn-frontend/commit/0f828cf169b39c5d3afc9bb2aeb042f275e69320) (#125) |
+| `samples/cpp/sdpa/fp16_cached.cpp` | Connor Baker (@ConnorBaker) | [`0f828cf`](https://github.com/NVIDIA/cudnn-frontend/commit/0f828cf169b39c5d3afc9bb2aeb042f275e69320) (#125) |
+| `samples/cpp/sdpa/fp16_fwd.cpp` | Connor Baker (@ConnorBaker) | [`0f828cf`](https://github.com/NVIDIA/cudnn-frontend/commit/0f828cf169b39c5d3afc9bb2aeb042f275e69320) (#125) |
+| `samples/cpp/sdpa/fp16_fwd_paged_decode_and_prefill.cpp` | Connor Baker (@ConnorBaker) | [`0f828cf`](https://github.com/NVIDIA/cudnn-frontend/commit/0f828cf169b39c5d3afc9bb2aeb042f275e69320) (#125) |
+| `samples/cpp/sdpa/fp16_fwd_with_cudagraphs.cpp` | Connor Baker (@ConnorBaker) | [`0f828cf`](https://github.com/NVIDIA/cudnn-frontend/commit/0f828cf169b39c5d3afc9bb2aeb042f275e69320) (#125) |
+| `samples/cpp/sdpa/fp16_fwd_with_custom_dropout.cpp` | Connor Baker (@ConnorBaker) | [`0f828cf`](https://github.com/NVIDIA/cudnn-frontend/commit/0f828cf169b39c5d3afc9bb2aeb042f275e69320) (#125) |
+| `samples/cpp/sdpa/fp16_fwd_with_flexible_graphs.cpp` | Connor Baker (@ConnorBaker) | [`0f828cf`](https://github.com/NVIDIA/cudnn-frontend/commit/0f828cf169b39c5d3afc9bb2aeb042f275e69320) (#125) |
+| `samples/cpp/sdpa/fp16_fwd_with_paged_caches.cpp` | Connor Baker (@ConnorBaker) | [`0f828cf`](https://github.com/NVIDIA/cudnn-frontend/commit/0f828cf169b39c5d3afc9bb2aeb042f275e69320) (#125) |
+| `samples/cpp/sdpa/fp8_bwd.cpp` | Connor Baker (@ConnorBaker) | [`0f828cf`](https://github.com/NVIDIA/cudnn-frontend/commit/0f828cf169b39c5d3afc9bb2aeb042f275e69320) (#125) |
+| `samples/cpp/sdpa/fp8_bwd_bottom_right_causal_mask.cpp` | Connor Baker (@ConnorBaker) | [`0f828cf`](https://github.com/NVIDIA/cudnn-frontend/commit/0f828cf169b39c5d3afc9bb2aeb042f275e69320) (#125) |
+| `samples/cpp/sdpa/fp8_fwd.cpp` | Connor Baker (@ConnorBaker) | [`0f828cf`](https://github.com/NVIDIA/cudnn-frontend/commit/0f828cf169b39c5d3afc9bb2aeb042f275e69320) (#125) |
+| `samples/cpp/sdpa/fp8_fwd_bottom_right_causal_mask.cpp` | Connor Baker (@ConnorBaker) | [`0f828cf`](https://github.com/NVIDIA/cudnn-frontend/commit/0f828cf169b39c5d3afc9bb2aeb042f275e69320) (#125) |
+| `samples/legacy_samples/CMakeLists.txt` | Connor Baker (@ConnorBaker)
Jun Zhang (@junaire) | [`0f828cf`](https://github.com/NVIDIA/cudnn-frontend/commit/0f828cf169b39c5d3afc9bb2aeb042f275e69320) (#125)
[`019bab6`](https://github.com/NVIDIA/cudnn-frontend/commit/019bab67ed175ed8dca6db217f8bdaad457c13bc) (#90) |
+| `setup.py` | Emilien Macchi (@EmilienM) | [`e0449f6`](https://github.com/NVIDIA/cudnn-frontend/commit/e0449f6e7de80a520dd1aeabe1772a1318179963) (#163) |
+| `test/cpp/CMakeLists.txt` | Connor Baker (@ConnorBaker)
Jun Zhang (@junaire) | [`0f828cf`](https://github.com/NVIDIA/cudnn-frontend/commit/0f828cf169b39c5d3afc9bb2aeb042f275e69320) (#125)
[`019bab6`](https://github.com/NVIDIA/cudnn-frontend/commit/019bab67ed175ed8dca6db217f8bdaad457c13bc) (#90) |
+| `test/python/fe_api/dsa/dsa_utils.py` | JackRao123 (@JackRao123)
Hollow Man (@HollowMan6) | [`52ce3e3`](https://github.com/NVIDIA/cudnn-frontend/commit/52ce3e37057baaba27bf436122ad1606acadd059) (#407)
[`0518565`](https://github.com/NVIDIA/cudnn-frontend/commit/051856567cbf2fd543811aab866e8e27f3fe1fe7) (#317) |
+| `test/python/fe_api/dsa/test_DSA_sparse_attention_backward.py` | zky (@zkyue) | [`3772b8b`](https://github.com/NVIDIA/cudnn-frontend/commit/3772b8b8f85239c5c5bcbfbf5f8f2519a68a4cdb) (#395) |
+| `test/python/fe_api/dsa/test_DSA_sparse_score_recompute.py` | Hollow Man (@HollowMan6) | [`0518565`](https://github.com/NVIDIA/cudnn-frontend/commit/051856567cbf2fd543811aab866e8e27f3fe1fe7) (#317) |
+
+> Note: `dlpack_version.txt` is a plain version-string file that cannot carry
+> a header comment; it is listed here and governed by MIT via this manifest.
+
+## Category 2 — MIT, third-party-derived (29 files)
+
+Derived from FlashAttention (BSD-3-Clause) and/or QuACK (Apache-2.0); they
+retain their original authors' copyright notices. See THIRD_PARTY_LICENSES.txt.
+The commit link(s) are the NVIDIA import commits that introduced the surviving
+derived lines.
+
+| File | Import commit(s) |
+|------|------------------|
+| `python/cudnn/block_sparse_attention/_interface.py` | [`afd575d`](https://github.com/NVIDIA/cudnn-frontend/commit/afd575d6ecf9cb86bc35325b9a961547f0d4d272) (#333) |
+| `python/cudnn/block_sparse_attention/csrc/bwd/bsa_bwd_postprocess.py` | [`afd575d`](https://github.com/NVIDIA/cudnn-frontend/commit/afd575d6ecf9cb86bc35325b9a961547f0d4d272) (#333)
[`5b9c94a`](https://github.com/NVIDIA/cudnn-frontend/commit/5b9c94a67763d4d6ebf4158b49edca4aad2d81e7) (#349) |
+| `python/cudnn/block_sparse_attention/csrc/bwd/bsa_bwd_preprocess.py` | [`afd575d`](https://github.com/NVIDIA/cudnn-frontend/commit/afd575d6ecf9cb86bc35325b9a961547f0d4d272) (#333) |
+| `python/cudnn/block_sparse_attention/csrc/bwd/sm100_blk128/bsa_bwd_sm100.py` | [`afd575d`](https://github.com/NVIDIA/cudnn-frontend/commit/afd575d6ecf9cb86bc35325b9a961547f0d4d272) (#333)
[`0041a2b`](https://github.com/NVIDIA/cudnn-frontend/commit/0041a2bb917f886a46388b0b59781ee185ed8f11) (#382)
[`d380fab`](https://github.com/NVIDIA/cudnn-frontend/commit/d380fabf3ae9b7002f0511143d1e27a29341bb2f) (#350) |
+| `python/cudnn/block_sparse_attention/csrc/fwd/sm100_blk64/bsa_fwd_combine.py` | [`afd575d`](https://github.com/NVIDIA/cudnn-frontend/commit/afd575d6ecf9cb86bc35325b9a961547f0d4d272) (#333) |
+| `python/cudnn/block_sparse_attention/csrc/fwd/sm100_blk64/bsa_fwd_helpers.py` | [`afd575d`](https://github.com/NVIDIA/cudnn-frontend/commit/afd575d6ecf9cb86bc35325b9a961547f0d4d272) (#333) |
+| `python/cudnn/block_sparse_attention/csrc/utils/block_info.py` | [`afd575d`](https://github.com/NVIDIA/cudnn-frontend/commit/afd575d6ecf9cb86bc35325b9a961547f0d4d272) (#333) |
+| `python/cudnn/block_sparse_attention/csrc/utils/block_sparse_tile_scheduler.py` | [`afd575d`](https://github.com/NVIDIA/cudnn-frontend/commit/afd575d6ecf9cb86bc35325b9a961547f0d4d272) (#333) |
+| `python/cudnn/block_sparse_attention/csrc/utils/copy_utils.py` | [`afd575d`](https://github.com/NVIDIA/cudnn-frontend/commit/afd575d6ecf9cb86bc35325b9a961547f0d4d272) (#333)
[`0041a2b`](https://github.com/NVIDIA/cudnn-frontend/commit/0041a2bb917f886a46388b0b59781ee185ed8f11) (#382) |
+| `python/cudnn/block_sparse_attention/csrc/utils/cute_dsl_utils.py` | [`afd575d`](https://github.com/NVIDIA/cudnn-frontend/commit/afd575d6ecf9cb86bc35325b9a961547f0d4d272) (#333) |
+| `python/cudnn/block_sparse_attention/csrc/utils/kernel_utils.py` | [`afd575d`](https://github.com/NVIDIA/cudnn-frontend/commit/afd575d6ecf9cb86bc35325b9a961547f0d4d272) (#333) |
+| `python/cudnn/block_sparse_attention/csrc/utils/layout_utils.py` | [`afd575d`](https://github.com/NVIDIA/cudnn-frontend/commit/afd575d6ecf9cb86bc35325b9a961547f0d4d272) (#333) |
+| `python/cudnn/block_sparse_attention/csrc/utils/mma_sm100_desc.py` | [`afd575d`](https://github.com/NVIDIA/cudnn-frontend/commit/afd575d6ecf9cb86bc35325b9a961547f0d4d272) (#333) |
+| `python/cudnn/block_sparse_attention/csrc/utils/named_barrier.py` | [`afd575d`](https://github.com/NVIDIA/cudnn-frontend/commit/afd575d6ecf9cb86bc35325b9a961547f0d4d272) (#333) |
+| `python/cudnn/block_sparse_attention/csrc/utils/pack_gqa.py` | [`afd575d`](https://github.com/NVIDIA/cudnn-frontend/commit/afd575d6ecf9cb86bc35325b9a961547f0d4d272) (#333) |
+| `python/cudnn/block_sparse_attention/csrc/utils/pipeline.py` | [`afd575d`](https://github.com/NVIDIA/cudnn-frontend/commit/afd575d6ecf9cb86bc35325b9a961547f0d4d272) (#333) |
+| `python/cudnn/block_sparse_attention/csrc/utils/sm90_utils.py` | [`afd575d`](https://github.com/NVIDIA/cudnn-frontend/commit/afd575d6ecf9cb86bc35325b9a961547f0d4d272) (#333) |
+| `python/cudnn/block_sparse_attention/csrc/utils/softmax.py` | [`afd575d`](https://github.com/NVIDIA/cudnn-frontend/commit/afd575d6ecf9cb86bc35325b9a961547f0d4d272) (#333)
[`52119ee`](https://github.com/NVIDIA/cudnn-frontend/commit/52119ee60e4b82e104a7a04ab36022cee2608195) (#341) |
+| `python/cudnn/block_sparse_attention/csrc/utils/tcgen05_mma_helpers.py` | [`afd575d`](https://github.com/NVIDIA/cudnn-frontend/commit/afd575d6ecf9cb86bc35325b9a961547f0d4d272) (#333) |
+| `python/cudnn/block_sparse_attention/csrc/utils/tile_scheduler.py` | [`afd575d`](https://github.com/NVIDIA/cudnn-frontend/commit/afd575d6ecf9cb86bc35325b9a961547f0d4d272) (#333) |
+| `python/cudnn/deepseek_sparse_attention/score_recompute/dense_score_recompute_sm90.py` | [`c4a9762`](https://github.com/NVIDIA/cudnn-frontend/commit/c4a97621eca52fa0c3a1862a411a16be580b25c6) (#241)
[`3e2b8ec`](https://github.com/NVIDIA/cudnn-frontend/commit/3e2b8ecddec1a9d03d02e7ed1f38dd62358177d7) (#263)
[`7016b04`](https://github.com/NVIDIA/cudnn-frontend/commit/7016b04077c4c53ee00ba39a86ab1067a7542e8c) (#316)
[`28462c3`](https://github.com/NVIDIA/cudnn-frontend/commit/28462c3f684b8f72785a3de84811180481a7fc8d) (#273) |
+| `python/cudnn/deepseek_sparse_attention/score_recompute/sparse_score_recompute_sm90.py` | [`c4a9762`](https://github.com/NVIDIA/cudnn-frontend/commit/c4a97621eca52fa0c3a1862a411a16be580b25c6) (#241) |
+| `python/cudnn/deepseek_sparse_attention/sparse_attention_backward/_interface_sm100.py` | [`c4a9762`](https://github.com/NVIDIA/cudnn-frontend/commit/c4a97621eca52fa0c3a1862a411a16be580b25c6) (#241)
[`7016b04`](https://github.com/NVIDIA/cudnn-frontend/commit/7016b04077c4c53ee00ba39a86ab1067a7542e8c) (#316)
[`3e2b8ec`](https://github.com/NVIDIA/cudnn-frontend/commit/3e2b8ecddec1a9d03d02e7ed1f38dd62358177d7) (#263)
[`cfee724`](https://github.com/NVIDIA/cudnn-frontend/commit/cfee7248b6f32a9aaf2421649a71668d68d80bfe) (#318) |
+| `python/cudnn/deepseek_sparse_attention/sparse_attention_backward/_interface_sm90.py` | [`c4a9762`](https://github.com/NVIDIA/cudnn-frontend/commit/c4a97621eca52fa0c3a1862a411a16be580b25c6) (#241)
[`3e2b8ec`](https://github.com/NVIDIA/cudnn-frontend/commit/3e2b8ecddec1a9d03d02e7ed1f38dd62358177d7) (#263)
[`f3ee97b`](https://github.com/NVIDIA/cudnn-frontend/commit/f3ee97b58ea208110f161807111f7755fcd2ec3e) (#388) |
+| `python/cudnn/deepseek_sparse_attention/utils/copy.py` | [`c4a9762`](https://github.com/NVIDIA/cudnn-frontend/commit/c4a97621eca52fa0c3a1862a411a16be580b25c6) (#241) |
+| `python/cudnn/deepseek_sparse_attention/utils/sm90/bwd_barriers.py` | [`c4a9762`](https://github.com/NVIDIA/cudnn-frontend/commit/c4a97621eca52fa0c3a1862a411a16be580b25c6) (#241) |
+| `python/cudnn/deepseek_sparse_attention/utils/sm90/bwd_tile_scheduler.py` | [`c4a9762`](https://github.com/NVIDIA/cudnn-frontend/commit/c4a97621eca52fa0c3a1862a411a16be580b25c6) (#241) |
+| `python/cudnn/deepseek_sparse_attention/utils/sm90/mma.py` | [`c4a9762`](https://github.com/NVIDIA/cudnn-frontend/commit/c4a97621eca52fa0c3a1862a411a16be580b25c6) (#241)
[`74efc0d`](https://github.com/NVIDIA/cudnn-frontend/commit/74efc0d44a11005326e797201b58adb1399b4733) (#321) |
+| `python/cudnn/deepseek_sparse_attention/utils/sm90/primitives.py` | [`c4a9762`](https://github.com/NVIDIA/cudnn-frontend/commit/c4a97621eca52fa0c3a1862a411a16be580b25c6) (#241)
[`7016b04`](https://github.com/NVIDIA/cudnn-frontend/commit/7016b04077c4c53ee00ba39a86ab1067a7542e8c) (#316) |
+
diff --git a/NOTICE b/NOTICE
new file mode 100644
index 000000000..dded27ce7
--- /dev/null
+++ b/NOTICE
@@ -0,0 +1,15 @@
+cudnn-frontend
+Copyright (c) 2020-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+
+This product includes software developed at NVIDIA CORPORATION
+(https://www.nvidia.com/).
+
+This product is distributed primarily under the Apache License, Version 2.0
+(see LICENSE.txt). A subset of files remain under the MIT License (see
+LICENSE-MIT.txt); each file declares its license via an SPDX
+`SPDX-License-Identifier:` tag. See LICENSING.md for the full list of
+MIT-licensed files and the rationale.
+
+This product also bundles, derives from, or fetches at build time third-party
+open source software. See THIRD_PARTY_LICENSES.txt for the complete list of
+attributions and license texts.
diff --git a/README.md b/README.md
index 53765a3fb..0d555be79 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@
[](https://pypi.org/project/nvidia-cudnn-frontend/)
[](https://pypi.org/project/nvidia-cudnn-frontend/)
[](https://pypi.org/project/nvidia-cudnn-frontend/)
-[](LICENSE.txt)
+[](LICENSE.txt)
[](https://nvidia.github.io/cudnn-frontend/)
**cuDNN Frontend** is NVIDIA's modern, open-source entry point to the cuDNN library and a growing collection of high-performance open-source kernels — scaled dot-product attention (**SDPA / Flash Attention**), grouped GEMM fusions for **Mixture-of-Experts (MoE)** training, fused normalization + activation, and more.
@@ -185,4 +185,9 @@ export CUDNN_FRONTEND_CUDART_LIB_NAME=/usr/local/cuda/lib64/libcudart.so.13
## License
-This project is licensed under the [MIT License](LICENSE.txt).
+This project is distributed primarily under the [Apache License 2.0](LICENSE.txt).
+A subset of files remain under the [MIT License](LICENSE-MIT.txt); each source
+file declares its license with an SPDX `SPDX-License-Identifier:` tag. See
+[LICENSING.md](LICENSING.md) for the full list of MIT-licensed files and the
+rationale, and [THIRD_PARTY_LICENSES.txt](THIRD_PARTY_LICENSES.txt) for
+third-party attributions.
diff --git a/THIRD_PARTY_LICENSES.txt b/THIRD_PARTY_LICENSES.txt
new file mode 100644
index 000000000..7ca45a4f1
--- /dev/null
+++ b/THIRD_PARTY_LICENSES.txt
@@ -0,0 +1,254 @@
+THIRD-PARTY SOFTWARE LICENSES AND NOTICES
+=========================================
+
+cudnn-frontend bundles, derives from, or fetches at build time the
+following third-party open source software. Runtime Python package
+dependencies installed separately from PyPI are declared in
+pyproject.toml and are not reproduced here.
+
+-------------------------------------------------------------------------------
+1. nlohmann/json
+ https://github.com/nlohmann/json
+
+Bundled (vendored) at include/cudnn_frontend/thirdparty/nlohmann/. The
+vendored copy retains its original license file (LICENSE.MIT) alongside
+the source.
+
+License: MIT License
+
+MIT License
+
+Copyright (c) 2013-2022 Niels Lohmann
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+-------------------------------------------------------------------------------
+2. FlashAttention (Dao-AILab/flash-attention)
+ https://github.com/Dao-AILab/flash-attention
+
+Portions of the CuTe DSL attention kernels under
+python/cudnn/block_sparse_attention/ and
+python/cudnn/deepseek_sparse_attention/ are derived from FlashAttention.
+Those files retain their original author copyright notices
+(Tri Dao; Jay Shah, Ganesh Bikshandi, Ying Zhang, Vijay Thakkar,
+Pradeep Ramani, Tri Dao; Wentao Guo, Ted Zadouri, Tri Dao; and external
+contributor Jerry Chen) in their file headers.
+
+License: BSD 3-Clause License
+
+BSD 3-Clause License
+
+Copyright (c) 2022, the respective contributors, as shown by the AUTHORS file.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+* Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+* Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+-------------------------------------------------------------------------------
+3. NVIDIA CUTLASS
+ https://github.com/NVIDIA/cutlass
+
+Portions of the CuTe DSL GEMM kernels under python/cudnn/ (gemm_*,
+grouped_gemm*, discrete_grouped_gemm*, native_sparse_attention, and
+related utilities) are derived from CUTLASS CuTe DSL examples. CUTLASS
+is also consumed at runtime as the nvidia-cutlass-dsl PyPI package
+(optional dependency).
+
+License: BSD 3-Clause License
+
+Copyright (c) 2017 - 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+SPDX-License-Identifier: BSD-3-Clause
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice,
+this list of conditions and the following disclaimer in the documentation
+and/or other materials provided with the distribution.
+
+3. Neither the name of the copyright holder nor the names of its
+contributors may be used to endorse or promote products derived from
+this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Certain files within this repository are subject to separate licensing terms:
+
+- The files located in the `python/CuTeDSL` directory are licensed under the
+ NVIDIA End User License Agreement (EULA). Please refer to
+ https://docs.nvidia.com/cutlass/latest/media/docs/pythonDSL/license.html
+ for the full terms.
+
+-------------------------------------------------------------------------------
+4. QuACK (quack-kernels)
+ https://github.com/Dao-AILab/quack
+
+Selected helper routines in the block-sparse attention CuTe DSL utilities
+(python/cudnn/block_sparse_attention/csrc/utils/) are adapted from
+quack-kernels 0.4.1 and maintained locally. Those files retain the
+'QuACK team' copyright notice in their headers.
+
+License: Apache License 2.0 (same text as this repository's LICENSE.txt)
+
+-------------------------------------------------------------------------------
+5. labml.ai Annotated Deep Learning Paper Implementations
+ https://github.com/labmlai/annotated_deep_learning_paper_implementations
+
+The RoPE reference implementation in test/python/test_apply_rope.py is
+derived from labml.ai's annotated implementations, as noted in that
+file.
+
+License: MIT License
+
+The MIT License (MIT)
+
+Copyright (c) 2020 Varuna Jayasiri
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+-------------------------------------------------------------------------------
+6. dlpack
+ https://github.com/dmlc/dlpack
+
+Fetched at build time (v1.1, python/CMakeLists.txt) or used from the
+system, for the Python bindings' tensor-exchange interface.
+
+License: Apache License 2.0 (same text as this repository's LICENSE.txt)
+
+-------------------------------------------------------------------------------
+7. pybind11
+ https://github.com/pybind/pybind11
+
+Build-time dependency (v2.13.6) used to build the Python bindings.
+
+License: BSD-style 3-Clause License
+
+Copyright (c) 2016 Wenzel Jakob , All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+3. Neither the name of the copyright holder nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Please also refer to the file .github/CONTRIBUTING.md, which clarifies licensing of
+external contributions to this project including patches, pull requests, etc.
+
+-------------------------------------------------------------------------------
+8. Catch2
+ https://github.com/catchorg/Catch2
+
+Fetched at build time (v3.3.2, samples/CMakeLists.txt) for the C++
+samples and tests only; not part of distributed artifacts.
+
+License: Boost Software License 1.0
+
+Boost Software License - Version 1.0 - August 17th, 2003
+
+Permission is hereby granted, free of charge, to any person or organization
+obtaining a copy of the software and accompanying documentation covered by
+this license (the "Software") to use, reproduce, display, distribute,
+execute, and transmit the Software, and to prepare derivative works of the
+Software, and to permit third-parties to whom the Software is furnished to
+do so, all subject to the following:
+
+The copyright notices in the Software and this entire statement, including
+the above license grant, this restriction and the following disclaimer,
+must be included in all copies of the Software, in whole or in part, and
+all derivative works of the Software, unless such copies or derivative
+works are solely in the form of machine-executable object code generated by
+a source language processor.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
+SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
+FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
+ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
+
diff --git a/benchmark/bench_moe.py b/benchmark/bench_moe.py
index d876d9d92..5114c65d9 100644
--- a/benchmark/bench_moe.py
+++ b/benchmark/bench_moe.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: MIT
+
"""
Benchmark MoE Grouped Matmul with LLM-inspired shapes.
diff --git a/benchmark/cutedsl_fusion_kernels/cutedsl_fusion_benchmarks.py b/benchmark/cutedsl_fusion_kernels/cutedsl_fusion_benchmarks.py
index 9e2c9c4c2..8b38067ee 100644
--- a/benchmark/cutedsl_fusion_kernels/cutedsl_fusion_benchmarks.py
+++ b/benchmark/cutedsl_fusion_kernels/cutedsl_fusion_benchmarks.py
@@ -1,4 +1,7 @@
#!/usr/bin/env python3
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Benchmark fused cuDNN Frontend activations vs unfused Transformer Engine kernels.
Supported activations:
diff --git a/benchmark/dsa/benchmark_dsa_sparse_attention_backward.py b/benchmark/dsa/benchmark_dsa_sparse_attention_backward.py
index f149a9ad5..a1c3e4209 100644
--- a/benchmark/dsa/benchmark_dsa_sparse_attention_backward.py
+++ b/benchmark/dsa/benchmark_dsa_sparse_attention_backward.py
@@ -1,4 +1,7 @@
#!/usr/bin/env python3
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Benchmark DeepSeek Sparse Attention (DSA) backward in cuDNN Frontend.
Times the public ``cudnn.DSA.sparse_attention_backward_wrapper`` API, which
diff --git a/benchmark/norms/Dockerfile b/benchmark/norms/Dockerfile
index a4bebad53..c30340d03 100644
--- a/benchmark/norms/Dockerfile
+++ b/benchmark/norms/Dockerfile
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
FROM nvcr.io/nvidia/pytorch:25.12-py3
# Set working directory
diff --git a/benchmark/norms/__init__.py b/benchmark/norms/__init__.py
index 75d16df49..10914f752 100644
--- a/benchmark/norms/__init__.py
+++ b/benchmark/norms/__init__.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Norm Benchmark Package
diff --git a/benchmark/norms/benchmark_single_norm.py b/benchmark/norms/benchmark_single_norm.py
index 090f08dbf..60fa89725 100644
--- a/benchmark/norms/benchmark_single_norm.py
+++ b/benchmark/norms/benchmark_single_norm.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Normalization benchmark (LayerNorm / RMSNorm).
diff --git a/benchmark/norms/charts.py b/benchmark/norms/charts.py
index dcb2e52f7..e89982676 100644
--- a/benchmark/norms/charts.py
+++ b/benchmark/norms/charts.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Chart generation for norm benchmark results.
diff --git a/benchmark/norms/config_types.py b/benchmark/norms/config_types.py
index 43800d12e..955797c39 100644
--- a/benchmark/norms/config_types.py
+++ b/benchmark/norms/config_types.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Core types for the norm benchmark configuration system.
diff --git a/benchmark/norms/configs/__init__.py b/benchmark/norms/configs/__init__.py
index ae716c6e7..377a8eff2 100644
--- a/benchmark/norms/configs/__init__.py
+++ b/benchmark/norms/configs/__init__.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Benchmark configuration loading utilities.
diff --git a/benchmark/norms/configs/all_models.py b/benchmark/norms/configs/all_models.py
index b215ac85f..bff6164d5 100644
--- a/benchmark/norms/configs/all_models.py
+++ b/benchmark/norms/configs/all_models.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
All Models Norm Benchmark Configuration
diff --git a/benchmark/norms/configs/deepseek_v3.py b/benchmark/norms/configs/deepseek_v3.py
index f76f52d65..f7be94f50 100644
--- a/benchmark/norms/configs/deepseek_v3.py
+++ b/benchmark/norms/configs/deepseek_v3.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
DeepSeek V3 Norm Benchmark Configuration
diff --git a/benchmark/norms/configs/gpt3_175b.py b/benchmark/norms/configs/gpt3_175b.py
index e3f89481a..0075015f4 100644
--- a/benchmark/norms/configs/gpt3_175b.py
+++ b/benchmark/norms/configs/gpt3_175b.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
GPT-3 175B Norm Benchmark Configuration
diff --git a/benchmark/norms/configs/llama31_405b.py b/benchmark/norms/configs/llama31_405b.py
index a79bb39cb..84de83f6f 100644
--- a/benchmark/norms/configs/llama31_405b.py
+++ b/benchmark/norms/configs/llama31_405b.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Llama 3.1 405B Norm Benchmark Configuration
diff --git a/benchmark/norms/configs/llama3_70b.py b/benchmark/norms/configs/llama3_70b.py
index 80b014d81..beeabb2cf 100644
--- a/benchmark/norms/configs/llama3_70b.py
+++ b/benchmark/norms/configs/llama3_70b.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Llama 3 70B Norm Benchmark Configuration
diff --git a/benchmark/norms/configs/llama3_8b.py b/benchmark/norms/configs/llama3_8b.py
index c741a1167..3c44dbda7 100644
--- a/benchmark/norms/configs/llama3_8b.py
+++ b/benchmark/norms/configs/llama3_8b.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Llama 3 8B Norm Benchmark Configuration
diff --git a/benchmark/norms/configs/llama4_e16.py b/benchmark/norms/configs/llama4_e16.py
index 7f07d0d09..6fa62e1c4 100644
--- a/benchmark/norms/configs/llama4_e16.py
+++ b/benchmark/norms/configs/llama4_e16.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Llama 4 E16 Norm Benchmark Configuration
diff --git a/benchmark/norms/configs/mixtral_8x22b.py b/benchmark/norms/configs/mixtral_8x22b.py
index b4a848f41..132f9e5a8 100644
--- a/benchmark/norms/configs/mixtral_8x22b.py
+++ b/benchmark/norms/configs/mixtral_8x22b.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Mixtral 8x22B Norm Benchmark Configuration
diff --git a/benchmark/norms/configs/mixtral_8x7b.py b/benchmark/norms/configs/mixtral_8x7b.py
index 92578842e..3c2871366 100644
--- a/benchmark/norms/configs/mixtral_8x7b.py
+++ b/benchmark/norms/configs/mixtral_8x7b.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Mixtral 8x7B Norm Benchmark Configuration
diff --git a/benchmark/norms/configs/nemotronh_56b.py b/benchmark/norms/configs/nemotronh_56b.py
index fdd1d247d..68a090d17 100644
--- a/benchmark/norms/configs/nemotronh_56b.py
+++ b/benchmark/norms/configs/nemotronh_56b.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
NemotronH 56B Norm Benchmark Configuration
diff --git a/benchmark/norms/configs/qwen3_235b.py b/benchmark/norms/configs/qwen3_235b.py
index dee2ff5c8..458770134 100644
--- a/benchmark/norms/configs/qwen3_235b.py
+++ b/benchmark/norms/configs/qwen3_235b.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Qwen3 235B Norm Benchmark Configuration
diff --git a/benchmark/norms/configs/qwen3_30b.py b/benchmark/norms/configs/qwen3_30b.py
index bd4193988..f28449667 100644
--- a/benchmark/norms/configs/qwen3_30b.py
+++ b/benchmark/norms/configs/qwen3_30b.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Qwen3 30B Norm Benchmark Configuration
diff --git a/benchmark/norms/runner.py b/benchmark/norms/runner.py
index ee0ae125c..8b56123a1 100755
--- a/benchmark/norms/runner.py
+++ b/benchmark/norms/runner.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Benchmark runner with configuration expansion, execution, and result collection.
diff --git a/benchmark/sdpa_benchmark_training/Dockerfile b/benchmark/sdpa_benchmark_training/Dockerfile
index abf86d727..7c2b2ffbe 100644
--- a/benchmark/sdpa_benchmark_training/Dockerfile
+++ b/benchmark/sdpa_benchmark_training/Dockerfile
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
FROM nvcr.io/nvidia/pytorch:26.03-py3
# Set working directory
diff --git a/benchmark/sdpa_benchmark_training/__init__.py b/benchmark/sdpa_benchmark_training/__init__.py
index dd665e2db..b4aec6109 100644
--- a/benchmark/sdpa_benchmark_training/__init__.py
+++ b/benchmark/sdpa_benchmark_training/__init__.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
SDPA Benchmark Training Package
diff --git a/benchmark/sdpa_benchmark_training/bench_ar_dit_peak.py b/benchmark/sdpa_benchmark_training/bench_ar_dit_peak.py
index f1f2f5b8c..0c21af518 100644
--- a/benchmark/sdpa_benchmark_training/bench_ar_dit_peak.py
+++ b/benchmark/sdpa_benchmark_training/bench_ar_dit_peak.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Peak-vs-peak SDPA bench for the autoregressive DiT shape.
Sweeps FAv4 ``num_splits`` and reports the best, paired against cuDNN
diff --git a/benchmark/sdpa_benchmark_training/benchmark_single_sdpa.py b/benchmark/sdpa_benchmark_training/benchmark_single_sdpa.py
index ef45cb8fb..7c60bf494 100755
--- a/benchmark/sdpa_benchmark_training/benchmark_single_sdpa.py
+++ b/benchmark/sdpa_benchmark_training/benchmark_single_sdpa.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Scaled Dot Product Attention (SDPA) benchmark
diff --git a/benchmark/sdpa_benchmark_training/charts.py b/benchmark/sdpa_benchmark_training/charts.py
index 7c58d0b3e..247c6645a 100644
--- a/benchmark/sdpa_benchmark_training/charts.py
+++ b/benchmark/sdpa_benchmark_training/charts.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Chart generation for SDPA benchmark results.
diff --git a/benchmark/sdpa_benchmark_training/config_types.py b/benchmark/sdpa_benchmark_training/config_types.py
index 3abcf605e..0386795e5 100644
--- a/benchmark/sdpa_benchmark_training/config_types.py
+++ b/benchmark/sdpa_benchmark_training/config_types.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Core types for the SDPA benchmark configuration system.
diff --git a/benchmark/sdpa_benchmark_training/configs/__init__.py b/benchmark/sdpa_benchmark_training/configs/__init__.py
index 37bf2d670..21e3db99a 100644
--- a/benchmark/sdpa_benchmark_training/configs/__init__.py
+++ b/benchmark/sdpa_benchmark_training/configs/__init__.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Benchmark configuration loading utilities.
diff --git a/benchmark/sdpa_benchmark_training/configs/auto_regressive_dit.py b/benchmark/sdpa_benchmark_training/configs/auto_regressive_dit.py
index 13ec21ac2..5ac5eb391 100644
--- a/benchmark/sdpa_benchmark_training/configs/auto_regressive_dit.py
+++ b/benchmark/sdpa_benchmark_training/configs/auto_regressive_dit.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Autoregressive video DiT SDPA Benchmark Configuration
diff --git a/benchmark/sdpa_benchmark_training/configs/dsv3.py b/benchmark/sdpa_benchmark_training/configs/dsv3.py
index e4bef2634..50b4dc53b 100644
--- a/benchmark/sdpa_benchmark_training/configs/dsv3.py
+++ b/benchmark/sdpa_benchmark_training/configs/dsv3.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
DeepSeek V3 SDPA Benchmark Configuration
diff --git a/benchmark/sdpa_benchmark_training/configs/gpt_oss.py b/benchmark/sdpa_benchmark_training/configs/gpt_oss.py
index 227b7a13b..e24dc51f8 100644
--- a/benchmark/sdpa_benchmark_training/configs/gpt_oss.py
+++ b/benchmark/sdpa_benchmark_training/configs/gpt_oss.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
GPT OSS SDPA Benchmark Configuration
diff --git a/benchmark/sdpa_benchmark_training/configs/kimiK26.py b/benchmark/sdpa_benchmark_training/configs/kimiK26.py
index 2b0c7846e..dd3123d6b 100644
--- a/benchmark/sdpa_benchmark_training/configs/kimiK26.py
+++ b/benchmark/sdpa_benchmark_training/configs/kimiK26.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Kimi-K2.6 SDPA Benchmark Configuration
diff --git a/benchmark/sdpa_benchmark_training/configs/llama.py b/benchmark/sdpa_benchmark_training/configs/llama.py
index 0e39ed001..ef98e0f33 100644
--- a/benchmark/sdpa_benchmark_training/configs/llama.py
+++ b/benchmark/sdpa_benchmark_training/configs/llama.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Llama 3.1 SDPA Benchmark Configuration
diff --git a/benchmark/sdpa_benchmark_training/configs/ltx2.py b/benchmark/sdpa_benchmark_training/configs/ltx2.py
index a1ecafce8..345f71774 100644
--- a/benchmark/sdpa_benchmark_training/configs/ltx2.py
+++ b/benchmark/sdpa_benchmark_training/configs/ltx2.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
LTX-2 SDPA Benchmark Configuration
diff --git a/benchmark/sdpa_benchmark_training/configs/qwen35.py b/benchmark/sdpa_benchmark_training/configs/qwen35.py
index dc4bd6bd3..ba5e22de4 100755
--- a/benchmark/sdpa_benchmark_training/configs/qwen35.py
+++ b/benchmark/sdpa_benchmark_training/configs/qwen35.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Qwen 3.5 SDPA Benchmark Configuration
diff --git a/benchmark/sdpa_benchmark_training/configs/wan22.py b/benchmark/sdpa_benchmark_training/configs/wan22.py
index 4a1cd545b..6455318e6 100644
--- a/benchmark/sdpa_benchmark_training/configs/wan22.py
+++ b/benchmark/sdpa_benchmark_training/configs/wan22.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Wan 2.2 A14B SDPA Benchmark Configuration
diff --git a/benchmark/sdpa_benchmark_training/runner.py b/benchmark/sdpa_benchmark_training/runner.py
index 7c934da15..0a659434e 100644
--- a/benchmark/sdpa_benchmark_training/runner.py
+++ b/benchmark/sdpa_benchmark_training/runner.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Benchmark runner with configuration expansion, execution, and result collection.
diff --git a/cmake/cuDNN.cmake b/cmake/cuDNN.cmake
index 2a17b6bdf..05973126d 100644
--- a/cmake/cuDNN.cmake
+++ b/cmake/cuDNN.cmake
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: MIT
+
# Check if CUDNN:: targets already exist (integrated build)
if(TARGET CUDNN::cudnn AND TARGET CUDNN::cudnn_all)
message(STATUS "cuDNN: Using existing CMake targets")
diff --git a/cudnn_frontend-config.cmake.in b/cudnn_frontend-config.cmake.in
index 8b2d84309..c2bfbee8e 100644
--- a/cudnn_frontend-config.cmake.in
+++ b/cudnn_frontend-config.cmake.in
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: MIT
+
@PACKAGE_INIT@
include(${CMAKE_CURRENT_LIST_DIR}/cudnn_frontend-targets.cmake)
diff --git a/include/cudnn_backend_base.h b/include/cudnn_backend_base.h
index bae2de8a0..924c28f30 100644
--- a/include/cudnn_backend_base.h
+++ b/include/cudnn_backend_base.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#pragma once
diff --git a/include/cudnn_frontend.h b/include/cudnn_frontend.h
index fe1a3500d..ea6cf09b3 100644
--- a/include/cudnn_frontend.h
+++ b/include/cudnn_frontend.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#pragma once
diff --git a/include/cudnn_frontend/backend/backend_descriptor.h b/include/cudnn_frontend/backend/backend_descriptor.h
index 2cd68c0f2..8527b1d52 100644
--- a/include/cudnn_frontend/backend/backend_descriptor.h
+++ b/include/cudnn_frontend/backend/backend_descriptor.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
#include
diff --git a/include/cudnn_frontend/backend/device_properties.h b/include/cudnn_frontend/backend/device_properties.h
index d31c5550b..702d82ee0 100644
--- a/include/cudnn_frontend/backend/device_properties.h
+++ b/include/cudnn_frontend/backend/device_properties.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#pragma once
diff --git a/include/cudnn_frontend/backend/execution_helpers.h b/include/cudnn_frontend/backend/execution_helpers.h
index 7138d487a..6cebaf86a 100644
--- a/include/cudnn_frontend/backend/execution_helpers.h
+++ b/include/cudnn_frontend/backend/execution_helpers.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
#include
diff --git a/include/cudnn_frontend/backend/kernel_cache.h b/include/cudnn_frontend/backend/kernel_cache.h
index ef173b2f2..cd73b5778 100644
--- a/include/cudnn_frontend/backend/kernel_cache.h
+++ b/include/cudnn_frontend/backend/kernel_cache.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#pragma once
diff --git a/include/cudnn_frontend/backend/plan_helpers.h b/include/cudnn_frontend/backend/plan_helpers.h
index 4ef47e22d..2895b3b95 100644
--- a/include/cudnn_frontend/backend/plan_helpers.h
+++ b/include/cudnn_frontend/backend/plan_helpers.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
#include
diff --git a/include/cudnn_frontend/context.h b/include/cudnn_frontend/context.h
index 86e878d97..f462a2c97 100644
--- a/include/cudnn_frontend/context.h
+++ b/include/cudnn_frontend/context.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
#include "../cudnn_frontend_shim.h"
diff --git a/include/cudnn_frontend/cudnn_interface.h b/include/cudnn_frontend/cudnn_interface.h
index 7abec228b..8bd87bec0 100644
--- a/include/cudnn_frontend/cudnn_interface.h
+++ b/include/cudnn_frontend/cudnn_interface.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
#include
diff --git a/include/cudnn_frontend/experimental/attention_utils.h b/include/cudnn_frontend/experimental/attention_utils.h
index b44a55e15..a900789d6 100644
--- a/include/cudnn_frontend/experimental/attention_utils.h
+++ b/include/cudnn_frontend/experimental/attention_utils.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
#include
diff --git a/include/cudnn_frontend/experimental/nvrtc_shim.h b/include/cudnn_frontend/experimental/nvrtc_shim.h
index eaad3dead..539248650 100644
--- a/include/cudnn_frontend/experimental/nvrtc_shim.h
+++ b/include/cudnn_frontend/experimental/nvrtc_shim.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#pragma once
diff --git a/include/cudnn_frontend/experimental/oss_engine_interface.h b/include/cudnn_frontend/experimental/oss_engine_interface.h
index 7c0a38e4c..51eb2fc14 100644
--- a/include/cudnn_frontend/experimental/oss_engine_interface.h
+++ b/include/cudnn_frontend/experimental/oss_engine_interface.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#pragma once
diff --git a/include/cudnn_frontend/experimental/sm100_rms_norm_silu_engine.h b/include/cudnn_frontend/experimental/sm100_rms_norm_silu_engine.h
index bb7048c80..05739bd7c 100644
--- a/include/cudnn_frontend/experimental/sm100_rms_norm_silu_engine.h
+++ b/include/cudnn_frontend/experimental/sm100_rms_norm_silu_engine.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#pragma once
diff --git a/include/cudnn_frontend/experimental/sm100_rms_norm_silu_knobs.h b/include/cudnn_frontend/experimental/sm100_rms_norm_silu_knobs.h
index 8080ab265..afbefc941 100644
--- a/include/cudnn_frontend/experimental/sm100_rms_norm_silu_knobs.h
+++ b/include/cudnn_frontend/experimental/sm100_rms_norm_silu_knobs.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
// Auto-generated knob selection logic for Sm100RmsNormSiluEngine.
diff --git a/include/cudnn_frontend/experimental/sm100_sdpa_prefill_engine.h b/include/cudnn_frontend/experimental/sm100_sdpa_prefill_engine.h
index 73da07dae..b6837bf48 100644
--- a/include/cudnn_frontend/experimental/sm100_sdpa_prefill_engine.h
+++ b/include/cudnn_frontend/experimental/sm100_sdpa_prefill_engine.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#pragma once
diff --git a/include/cudnn_frontend/experimental/sm90_sdpa_prefill_engine.h b/include/cudnn_frontend/experimental/sm90_sdpa_prefill_engine.h
index d1fb8a24d..ead29d449 100644
--- a/include/cudnn_frontend/experimental/sm90_sdpa_prefill_engine.h
+++ b/include/cudnn_frontend/experimental/sm90_sdpa_prefill_engine.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#pragma once
diff --git a/include/cudnn_frontend/generated/rms_norm_silu/sm100/ln_fwd_silu_kernel.h b/include/cudnn_frontend/generated/rms_norm_silu/sm100/ln_fwd_silu_kernel.h
index 77b5dd72b..177483059 100644
--- a/include/cudnn_frontend/generated/rms_norm_silu/sm100/ln_fwd_silu_kernel.h
+++ b/include/cudnn_frontend/generated/rms_norm_silu/sm100/ln_fwd_silu_kernel.h
@@ -1,5 +1,7 @@
-// Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-// SPDX-License-Identifier: MIT
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
#pragma once
// Auto-generated from ln_fwd_silu_kernel.cu
diff --git a/include/cudnn_frontend/generated/rms_norm_silu/sm100/ln_headers.h b/include/cudnn_frontend/generated/rms_norm_silu/sm100/ln_headers.h
index 59bac6327..6748f2b8b 100644
--- a/include/cudnn_frontend/generated/rms_norm_silu/sm100/ln_headers.h
+++ b/include/cudnn_frontend/generated/rms_norm_silu/sm100/ln_headers.h
@@ -1,5 +1,7 @@
-// Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-// SPDX-License-Identifier: MIT
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
#pragma once
// Auto-generated — do not edit manually.
// Lightweight LN headers (~3K lines) replacing the 151K-line embedded version.
diff --git a/include/cudnn_frontend/generated/sdpa/sm100/prefill/full_seqlens/d128_fprop_kernel.h b/include/cudnn_frontend/generated/sdpa/sm100/prefill/full_seqlens/d128_fprop_kernel.h
index ee3664a86..880380db8 100644
--- a/include/cudnn_frontend/generated/sdpa/sm100/prefill/full_seqlens/d128_fprop_kernel.h
+++ b/include/cudnn_frontend/generated/sdpa/sm100/prefill/full_seqlens/d128_fprop_kernel.h
@@ -1,5 +1,7 @@
-// Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-// SPDX-License-Identifier: MIT
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
#pragma once
#if defined(__clang__)
#pragma clang diagnostic push
diff --git a/include/cudnn_frontend/generated/sdpa/sm100/prefill/full_seqlens/d64_fprop_kernel.h b/include/cudnn_frontend/generated/sdpa/sm100/prefill/full_seqlens/d64_fprop_kernel.h
index 33b9ef2d7..f7d45b068 100644
--- a/include/cudnn_frontend/generated/sdpa/sm100/prefill/full_seqlens/d64_fprop_kernel.h
+++ b/include/cudnn_frontend/generated/sdpa/sm100/prefill/full_seqlens/d64_fprop_kernel.h
@@ -1,5 +1,7 @@
-// Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-// SPDX-License-Identifier: MIT
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
#pragma once
#if defined(__clang__)
#pragma clang diagnostic push
diff --git a/include/cudnn_frontend/generated/sdpa/sm90/prefill/full_seqlens/d128_fprop_kernel.h b/include/cudnn_frontend/generated/sdpa/sm90/prefill/full_seqlens/d128_fprop_kernel.h
index d588ce6f6..716750bf3 100644
--- a/include/cudnn_frontend/generated/sdpa/sm90/prefill/full_seqlens/d128_fprop_kernel.h
+++ b/include/cudnn_frontend/generated/sdpa/sm90/prefill/full_seqlens/d128_fprop_kernel.h
@@ -1,5 +1,7 @@
-// Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-// SPDX-License-Identifier: MIT
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
#pragma once
// Suppress clang warning for overlength strings (concatenated result may exceed 65536)
#if defined(__clang__)
diff --git a/include/cudnn_frontend/generated/sdpa/sm90/prefill/full_seqlens/d64_fprop_kernel.h b/include/cudnn_frontend/generated/sdpa/sm90/prefill/full_seqlens/d64_fprop_kernel.h
index 92d8d1bb6..9e2a2def0 100644
--- a/include/cudnn_frontend/generated/sdpa/sm90/prefill/full_seqlens/d64_fprop_kernel.h
+++ b/include/cudnn_frontend/generated/sdpa/sm90/prefill/full_seqlens/d64_fprop_kernel.h
@@ -1,5 +1,7 @@
-// Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-// SPDX-License-Identifier: MIT
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
#pragma once
// Suppress clang warning for overlength strings (concatenated result may exceed 65536)
diff --git a/include/cudnn_frontend/graph_helpers.h b/include/cudnn_frontend/graph_helpers.h
index 879927d5b..f14d46d6d 100644
--- a/include/cudnn_frontend/graph_helpers.h
+++ b/include/cudnn_frontend/graph_helpers.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#pragma once
diff --git a/include/cudnn_frontend/graph_interface.h b/include/cudnn_frontend/graph_interface.h
index be54b51d8..7edcf5496 100644
--- a/include/cudnn_frontend/graph_interface.h
+++ b/include/cudnn_frontend/graph_interface.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
#include
diff --git a/include/cudnn_frontend/graph_properties.h b/include/cudnn_frontend/graph_properties.h
index f6e1c4ad5..c2e1b7c06 100644
--- a/include/cudnn_frontend/graph_properties.h
+++ b/include/cudnn_frontend/graph_properties.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
+ */
+
#pragma once
diff --git a/include/cudnn_frontend/knobs.h b/include/cudnn_frontend/knobs.h
index 559643ac4..142b22208 100644
--- a/include/cudnn_frontend/knobs.h
+++ b/include/cudnn_frontend/knobs.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
namespace cudnn_frontend {
diff --git a/include/cudnn_frontend/node/adaptive_layernorm.h b/include/cudnn_frontend/node/adaptive_layernorm.h
index 86eaa6d1d..6062ac926 100644
--- a/include/cudnn_frontend/node/adaptive_layernorm.h
+++ b/include/cudnn_frontend/node/adaptive_layernorm.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
#include "../../cudnn_frontend_Heuristics.h"
diff --git a/include/cudnn_frontend/node/batchnorm.h b/include/cudnn_frontend/node/batchnorm.h
index 69d232be9..b39cdd59e 100644
--- a/include/cudnn_frontend/node/batchnorm.h
+++ b/include/cudnn_frontend/node/batchnorm.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
#include "../graph_helpers.h"
diff --git a/include/cudnn_frontend/node/batchnorm_inference.h b/include/cudnn_frontend/node/batchnorm_inference.h
index 9fb433f95..a13034cd7 100644
--- a/include/cudnn_frontend/node/batchnorm_inference.h
+++ b/include/cudnn_frontend/node/batchnorm_inference.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
#include "../graph_helpers.h"
diff --git a/include/cudnn_frontend/node/block_scale_dequantize.h b/include/cudnn_frontend/node/block_scale_dequantize.h
index bbaa2bf0f..78c9f7eeb 100644
--- a/include/cudnn_frontend/node/block_scale_dequantize.h
+++ b/include/cudnn_frontend/node/block_scale_dequantize.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
#include "../../cudnn_frontend_Logging.h"
diff --git a/include/cudnn_frontend/node/block_scale_quantize.h b/include/cudnn_frontend/node/block_scale_quantize.h
index 494ea14da..e3e67e844 100644
--- a/include/cudnn_frontend/node/block_scale_quantize.h
+++ b/include/cudnn_frontend/node/block_scale_quantize.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
+ */
+
#pragma once
#include "../../cudnn_frontend_Logging.h"
diff --git a/include/cudnn_frontend/node/bn_finalize.h b/include/cudnn_frontend/node/bn_finalize.h
index 99d3ec0c9..288180d7c 100644
--- a/include/cudnn_frontend/node/bn_finalize.h
+++ b/include/cudnn_frontend/node/bn_finalize.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
#include "../graph_helpers.h"
diff --git a/include/cudnn_frontend/node/concatenate.h b/include/cudnn_frontend/node/concatenate.h
index 5f62589b7..e4f7b1c4b 100644
--- a/include/cudnn_frontend/node/concatenate.h
+++ b/include/cudnn_frontend/node/concatenate.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
#include "../../cudnn_frontend_Logging.h"
diff --git a/include/cudnn_frontend/node/conv_dgrad.h b/include/cudnn_frontend/node/conv_dgrad.h
index a2e2e4e82..883189e2c 100644
--- a/include/cudnn_frontend/node/conv_dgrad.h
+++ b/include/cudnn_frontend/node/conv_dgrad.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
#include "../graph_helpers.h"
diff --git a/include/cudnn_frontend/node/conv_fprop.h b/include/cudnn_frontend/node/conv_fprop.h
index 34acf550a..a489cdfee 100644
--- a/include/cudnn_frontend/node/conv_fprop.h
+++ b/include/cudnn_frontend/node/conv_fprop.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
#include "../graph_helpers.h"
diff --git a/include/cudnn_frontend/node/conv_wgrad.h b/include/cudnn_frontend/node/conv_wgrad.h
index 2f9b478c5..08d2aed55 100644
--- a/include/cudnn_frontend/node/conv_wgrad.h
+++ b/include/cudnn_frontend/node/conv_wgrad.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
#include "../graph_helpers.h"
diff --git a/include/cudnn_frontend/node/dbn.h b/include/cudnn_frontend/node/dbn.h
index 9f2a23e75..c604b5ef3 100644
--- a/include/cudnn_frontend/node/dbn.h
+++ b/include/cudnn_frontend/node/dbn.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
#include "../graph_helpers.h"
diff --git a/include/cudnn_frontend/node/dbn_weight.h b/include/cudnn_frontend/node/dbn_weight.h
index bfad0dfbb..b2aef8d23 100644
--- a/include/cudnn_frontend/node/dbn_weight.h
+++ b/include/cudnn_frontend/node/dbn_weight.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
#include "../graph_helpers.h"
diff --git a/include/cudnn_frontend/node/diagonal_band_mask.h b/include/cudnn_frontend/node/diagonal_band_mask.h
index 243d1e349..eceef6d6c 100644
--- a/include/cudnn_frontend/node/diagonal_band_mask.h
+++ b/include/cudnn_frontend/node/diagonal_band_mask.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
#include "../graph_helpers.h"
diff --git a/include/cudnn_frontend/node/dln.h b/include/cudnn_frontend/node/dln.h
index ad7ad1f1c..42d0a329d 100644
--- a/include/cudnn_frontend/node/dln.h
+++ b/include/cudnn_frontend/node/dln.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
#include "../graph_helpers.h"
diff --git a/include/cudnn_frontend/node/genstats.h b/include/cudnn_frontend/node/genstats.h
index 8f9189759..1835ef74a 100644
--- a/include/cudnn_frontend/node/genstats.h
+++ b/include/cudnn_frontend/node/genstats.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
#include "../graph_helpers.h"
diff --git a/include/cudnn_frontend/node/instancenorm.h b/include/cudnn_frontend/node/instancenorm.h
index 1b71f4ab8..dc0a78c8d 100644
--- a/include/cudnn_frontend/node/instancenorm.h
+++ b/include/cudnn_frontend/node/instancenorm.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
#include "../graph_helpers.h"
diff --git a/include/cudnn_frontend/node/layernorm.h b/include/cudnn_frontend/node/layernorm.h
index 46420aa27..71cd05394 100644
--- a/include/cudnn_frontend/node/layernorm.h
+++ b/include/cudnn_frontend/node/layernorm.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
#include "../graph_helpers.h"
diff --git a/include/cudnn_frontend/node/matmul.h b/include/cudnn_frontend/node/matmul.h
index f09d34154..d93ddd499 100644
--- a/include/cudnn_frontend/node/matmul.h
+++ b/include/cudnn_frontend/node/matmul.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
+ */
+
#pragma once
#include "../graph_helpers.h"
diff --git a/include/cudnn_frontend/node/matmul_fp8.h b/include/cudnn_frontend/node/matmul_fp8.h
index d3fe5e58b..2b8aa4126 100644
--- a/include/cudnn_frontend/node/matmul_fp8.h
+++ b/include/cudnn_frontend/node/matmul_fp8.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
#include "../graph_helpers.h"
diff --git a/include/cudnn_frontend/node/moe_grouped_matmul.h b/include/cudnn_frontend/node/moe_grouped_matmul.h
index d05d75df6..99899e66c 100644
--- a/include/cudnn_frontend/node/moe_grouped_matmul.h
+++ b/include/cudnn_frontend/node/moe_grouped_matmul.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
#include "../graph_helpers.h"
diff --git a/include/cudnn_frontend/node/moe_grouped_matmul_bwd.h b/include/cudnn_frontend/node/moe_grouped_matmul_bwd.h
index 20762030b..bab26c179 100644
--- a/include/cudnn_frontend/node/moe_grouped_matmul_bwd.h
+++ b/include/cudnn_frontend/node/moe_grouped_matmul_bwd.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
#include "../graph_helpers.h"
diff --git a/include/cudnn_frontend/node/paged_cache_load.h b/include/cudnn_frontend/node/paged_cache_load.h
index 9fc861097..39c76b92e 100644
--- a/include/cudnn_frontend/node/paged_cache_load.h
+++ b/include/cudnn_frontend/node/paged_cache_load.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
#include "../graph_helpers.h"
diff --git a/include/cudnn_frontend/node/pointwise.h b/include/cudnn_frontend/node/pointwise.h
index 6d2da14fa..50dcdc92a 100644
--- a/include/cudnn_frontend/node/pointwise.h
+++ b/include/cudnn_frontend/node/pointwise.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
+ */
+
#pragma once
#include "../graph_helpers.h"
diff --git a/include/cudnn_frontend/node/reduction.h b/include/cudnn_frontend/node/reduction.h
index 5944b69a3..4b25be712 100644
--- a/include/cudnn_frontend/node/reduction.h
+++ b/include/cudnn_frontend/node/reduction.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
+ */
+
#pragma once
#include "../graph_helpers.h"
diff --git a/include/cudnn_frontend/node/resample.h b/include/cudnn_frontend/node/resample.h
index 34e6031fb..6fd759900 100644
--- a/include/cudnn_frontend/node/resample.h
+++ b/include/cudnn_frontend/node/resample.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
#include "../graph_helpers.h"
diff --git a/include/cudnn_frontend/node/reshape.h b/include/cudnn_frontend/node/reshape.h
index e2b554626..a24763cd4 100644
--- a/include/cudnn_frontend/node/reshape.h
+++ b/include/cudnn_frontend/node/reshape.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
+ */
+
#pragma once
#include "../graph_helpers.h"
diff --git a/include/cudnn_frontend/node/rmsnorm.h b/include/cudnn_frontend/node/rmsnorm.h
index bc1f37d22..466c74983 100644
--- a/include/cudnn_frontend/node/rmsnorm.h
+++ b/include/cudnn_frontend/node/rmsnorm.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
#include "../graph_helpers.h"
diff --git a/include/cudnn_frontend/node/rng.h b/include/cudnn_frontend/node/rng.h
index 09b762d33..66fad3846 100644
--- a/include/cudnn_frontend/node/rng.h
+++ b/include/cudnn_frontend/node/rng.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
+ */
+
#pragma once
#include "../graph_helpers.h"
diff --git a/include/cudnn_frontend/node/rope.h b/include/cudnn_frontend/node/rope.h
index 01b05c469..b3e058165 100644
--- a/include/cudnn_frontend/node/rope.h
+++ b/include/cudnn_frontend/node/rope.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
#include "../graph_helpers.h"
diff --git a/include/cudnn_frontend/node/rope_backward.h b/include/cudnn_frontend/node/rope_backward.h
index fd7bf4f99..16e6a34df 100644
--- a/include/cudnn_frontend/node/rope_backward.h
+++ b/include/cudnn_frontend/node/rope_backward.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
#include "../graph_helpers.h"
diff --git a/include/cudnn_frontend/node/scaled_dot_product_flash_attention.h b/include/cudnn_frontend/node/scaled_dot_product_flash_attention.h
index 79f91a554..638c57c8a 100644
--- a/include/cudnn_frontend/node/scaled_dot_product_flash_attention.h
+++ b/include/cudnn_frontend/node/scaled_dot_product_flash_attention.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
diff --git a/include/cudnn_frontend/node/sdpa_fp8_bwd.h b/include/cudnn_frontend/node/sdpa_fp8_bwd.h
index 0cec5a85f..24f19406f 100644
--- a/include/cudnn_frontend/node/sdpa_fp8_bwd.h
+++ b/include/cudnn_frontend/node/sdpa_fp8_bwd.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
#include "../../cudnn_frontend_Heuristics.h"
diff --git a/include/cudnn_frontend/node/sdpa_support_surface.h b/include/cudnn_frontend/node/sdpa_support_surface.h
index 8c59a5937..9581bb3fc 100644
--- a/include/cudnn_frontend/node/sdpa_support_surface.h
+++ b/include/cudnn_frontend/node/sdpa_support_surface.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
#include
diff --git a/include/cudnn_frontend/node/slice.h b/include/cudnn_frontend/node/slice.h
index 10503b628..166c522ae 100644
--- a/include/cudnn_frontend/node/slice.h
+++ b/include/cudnn_frontend/node/slice.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
#include "../graph_helpers.h"
diff --git a/include/cudnn_frontend/node/softmax.h b/include/cudnn_frontend/node/softmax.h
index 1aa56894a..d37bfc6f0 100644
--- a/include/cudnn_frontend/node/softmax.h
+++ b/include/cudnn_frontend/node/softmax.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
+ */
+
#pragma once
#include "../../cudnn_frontend_Heuristics.h"
diff --git a/include/cudnn_frontend/node/transpose.h b/include/cudnn_frontend/node/transpose.h
index 7f764be7c..ec486370a 100644
--- a/include/cudnn_frontend/node/transpose.h
+++ b/include/cudnn_frontend/node/transpose.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
#include "../../cudnn_frontend_Logging.h"
diff --git a/include/cudnn_frontend/node_interface.h b/include/cudnn_frontend/node_interface.h
index dad9b5987..8a4db4609 100644
--- a/include/cudnn_frontend/node_interface.h
+++ b/include/cudnn_frontend/node_interface.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
+ */
+
#pragma once
#include
diff --git a/include/cudnn_frontend/plans.h b/include/cudnn_frontend/plans.h
index de5192902..32217a6c5 100644
--- a/include/cudnn_frontend/plans.h
+++ b/include/cudnn_frontend/plans.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
#include
diff --git a/include/cudnn_frontend/utils/attn_score_modifiers.h b/include/cudnn_frontend/utils/attn_score_modifiers.h
index a09e53840..9f8fe441e 100644
--- a/include/cudnn_frontend/utils/attn_score_modifiers.h
+++ b/include/cudnn_frontend/utils/attn_score_modifiers.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
#include "../graph_interface.h"
diff --git a/include/cudnn_frontend/utils/serialize.h b/include/cudnn_frontend/utils/serialize.h
index ce3d7806a..dff6d4ddb 100644
--- a/include/cudnn_frontend/utils/serialize.h
+++ b/include/cudnn_frontend/utils/serialize.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
#include "../graph_properties.h"
diff --git a/include/cudnn_frontend_ConvDesc.h b/include/cudnn_frontend_ConvDesc.h
index 0cbd24809..738e5b662 100644
--- a/include/cudnn_frontend_ConvDesc.h
+++ b/include/cudnn_frontend_ConvDesc.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#pragma once
diff --git a/include/cudnn_frontend_Engine.h b/include/cudnn_frontend_Engine.h
index cb093cc9c..4b8d32a48 100644
--- a/include/cudnn_frontend_Engine.h
+++ b/include/cudnn_frontend_Engine.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#pragma once
diff --git a/include/cudnn_frontend_EngineConfig.h b/include/cudnn_frontend_EngineConfig.h
index 15995ebd6..5297ee6f3 100644
--- a/include/cudnn_frontend_EngineConfig.h
+++ b/include/cudnn_frontend_EngineConfig.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#pragma once
diff --git a/include/cudnn_frontend_EngineConfigGenerator.h b/include/cudnn_frontend_EngineConfigGenerator.h
index 432f678f8..12c91c0e6 100644
--- a/include/cudnn_frontend_EngineConfigGenerator.h
+++ b/include/cudnn_frontend_EngineConfigGenerator.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#pragma once
diff --git a/include/cudnn_frontend_EngineFallbackList.h b/include/cudnn_frontend_EngineFallbackList.h
index 88f4fd1bc..613607b30 100644
--- a/include/cudnn_frontend_EngineFallbackList.h
+++ b/include/cudnn_frontend_EngineFallbackList.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#pragma once
diff --git a/include/cudnn_frontend_Errata.h b/include/cudnn_frontend_Errata.h
index 9f2ddf682..fb54a0514 100644
--- a/include/cudnn_frontend_Errata.h
+++ b/include/cudnn_frontend_Errata.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include "../include/cudnn_frontend_Logging.h"
diff --git a/include/cudnn_frontend_ExecutionPlan.h b/include/cudnn_frontend_ExecutionPlan.h
index 9d0a89720..cb0cdd1a4 100644
--- a/include/cudnn_frontend_ExecutionPlan.h
+++ b/include/cudnn_frontend_ExecutionPlan.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#pragma once
diff --git a/include/cudnn_frontend_ExecutionPlanCache.h b/include/cudnn_frontend_ExecutionPlanCache.h
index e41a445ee..26dc9edd4 100644
--- a/include/cudnn_frontend_ExecutionPlanCache.h
+++ b/include/cudnn_frontend_ExecutionPlanCache.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/include/cudnn_frontend_Filters.h b/include/cudnn_frontend_Filters.h
index d16170b0c..32f81a105 100644
--- a/include/cudnn_frontend_Filters.h
+++ b/include/cudnn_frontend_Filters.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#pragma once
diff --git a/include/cudnn_frontend_Heuristics.h b/include/cudnn_frontend_Heuristics.h
index 06b4ecc6c..7af73306b 100644
--- a/include/cudnn_frontend_Heuristics.h
+++ b/include/cudnn_frontend_Heuristics.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#pragma once
diff --git a/include/cudnn_frontend_Logging.h b/include/cudnn_frontend_Logging.h
index c232ee2ea..d91760cc7 100644
--- a/include/cudnn_frontend_Logging.h
+++ b/include/cudnn_frontend_Logging.h
@@ -1,25 +1,8 @@
/*
- * Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#pragma once
diff --git a/include/cudnn_frontend_MatMulDesc.h b/include/cudnn_frontend_MatMulDesc.h
index ee57403f0..e08632c27 100644
--- a/include/cudnn_frontend_MatMulDesc.h
+++ b/include/cudnn_frontend_MatMulDesc.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#pragma once
diff --git a/include/cudnn_frontend_Operation.h b/include/cudnn_frontend_Operation.h
index fa9dbba20..7ff22aef6 100644
--- a/include/cudnn_frontend_Operation.h
+++ b/include/cudnn_frontend_Operation.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#pragma once
diff --git a/include/cudnn_frontend_OperationGraph.h b/include/cudnn_frontend_OperationGraph.h
index 903d9320e..35ba8b97e 100644
--- a/include/cudnn_frontend_OperationGraph.h
+++ b/include/cudnn_frontend_OperationGraph.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#pragma once
diff --git a/include/cudnn_frontend_PointWiseDesc.h b/include/cudnn_frontend_PointWiseDesc.h
index 87bfbd2f7..72ac3f051 100644
--- a/include/cudnn_frontend_PointWiseDesc.h
+++ b/include/cudnn_frontend_PointWiseDesc.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#pragma once
diff --git a/include/cudnn_frontend_ReductionDesc.h b/include/cudnn_frontend_ReductionDesc.h
index 627b5d0ff..8181da2d6 100644
--- a/include/cudnn_frontend_ReductionDesc.h
+++ b/include/cudnn_frontend_ReductionDesc.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#pragma once
diff --git a/include/cudnn_frontend_Reorder_Tensor.h b/include/cudnn_frontend_Reorder_Tensor.h
index 6ac5a8c57..8ffc037e7 100644
--- a/include/cudnn_frontend_Reorder_Tensor.h
+++ b/include/cudnn_frontend_Reorder_Tensor.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#pragma once
diff --git a/include/cudnn_frontend_Resample.h b/include/cudnn_frontend_Resample.h
index a375a4588..6ec42cead 100644
--- a/include/cudnn_frontend_Resample.h
+++ b/include/cudnn_frontend_Resample.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#pragma once
diff --git a/include/cudnn_frontend_Rng.h b/include/cudnn_frontend_Rng.h
index 829f8bde5..98ddce2da 100644
--- a/include/cudnn_frontend_Rng.h
+++ b/include/cudnn_frontend_Rng.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#pragma once
diff --git a/include/cudnn_frontend_Tensor.h b/include/cudnn_frontend_Tensor.h
index b6d5123e5..666c46aab 100644
--- a/include/cudnn_frontend_Tensor.h
+++ b/include/cudnn_frontend_Tensor.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#pragma once
diff --git a/include/cudnn_frontend_VariantPack.h b/include/cudnn_frontend_VariantPack.h
index 3b7ae8ef2..5ab4f4ded 100644
--- a/include/cudnn_frontend_VariantPack.h
+++ b/include/cudnn_frontend_VariantPack.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#pragma once
diff --git a/include/cudnn_frontend_find_plan.h b/include/cudnn_frontend_find_plan.h
index b90790385..576f1456a 100644
--- a/include/cudnn_frontend_find_plan.h
+++ b/include/cudnn_frontend_find_plan.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#pragma once
diff --git a/include/cudnn_frontend_get_plan.h b/include/cudnn_frontend_get_plan.h
index 1cb4c4125..120ac0e79 100644
--- a/include/cudnn_frontend_get_plan.h
+++ b/include/cudnn_frontend_get_plan.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#pragma once
diff --git a/include/cudnn_frontend_shim.h b/include/cudnn_frontend_shim.h
index 521b2a4e1..269ef0104 100644
--- a/include/cudnn_frontend_shim.h
+++ b/include/cudnn_frontend_shim.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#pragma once
diff --git a/include/cudnn_frontend_utils.h b/include/cudnn_frontend_utils.h
index a7bbd06fb..2ef2116ae 100644
--- a/include/cudnn_frontend_utils.h
+++ b/include/cudnn_frontend_utils.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
*/
#pragma once
diff --git a/include/cudnn_frontend_version.h b/include/cudnn_frontend_version.h
index c6d919d59..9ec9e3509 100644
--- a/include/cudnn_frontend_version.h
+++ b/include/cudnn_frontend_version.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2026, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#pragma once
diff --git a/pyproject.toml b/pyproject.toml
index 544b28d11..f719edc7e 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ dynamic = ["version"]
description = "NVIDIA cuDNN Frontend — Python and C++ Graph API with SOTA attention (SDPA / Flash Attention), MoE grouped GEMM fusions, and FP8/MXFP8 kernels for Hopper and Blackwell GPUs."
readme = "README.md"
requires-python = ">=3.9"
-license = {text = "MIT"}
+license = {text = "Apache-2.0 AND MIT"}
keywords = [
"cudnn",
"cuda",
@@ -30,6 +30,7 @@ classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
+ "License :: OSI Approved :: Apache Software License",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt
index f0de87734..f759d1aad 100644
--- a/python/CMakeLists.txt
+++ b/python/CMakeLists.txt
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: MIT
+
cmake_minimum_required(VERSION 3.18)
Include(FetchContent)
diff --git a/python/cudnn/__init__.py b/python/cudnn/__init__.py
index 6e8b99829..0c9016ae1 100644
--- a/python/cudnn/__init__.py
+++ b/python/cudnn/__init__.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import ctypes
import glob
import os
diff --git a/python/cudnn/_experimental_warnings.py b/python/cudnn/_experimental_warnings.py
index 762e3c608..f65d8e004 100644
--- a/python/cudnn/_experimental_warnings.py
+++ b/python/cudnn/_experimental_warnings.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import logging
_experimental_api_warnings_emitted = set()
diff --git a/python/cudnn/_pygraph.py b/python/cudnn/_pygraph.py
index 4993ed1dd..cdb0b9903 100644
--- a/python/cudnn/_pygraph.py
+++ b/python/cudnn/_pygraph.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Pure Python graph representation for cuDNN Frontend.
All graph structure and attributes are kept in Python. Graph construction is
diff --git a/python/cudnn/api_base.py b/python/cudnn/api_base.py
index 2a2a1741a..086200d1e 100644
--- a/python/cudnn/api_base.py
+++ b/python/cudnn/api_base.py
@@ -1,5 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
"""
Base classes for cuDNN API wrappers.
diff --git a/python/cudnn/block_sparse_attention/__init__.py b/python/cudnn/block_sparse_attention/__init__.py
index 172f703e8..f2f87fe2d 100644
--- a/python/cudnn/block_sparse_attention/__init__.py
+++ b/python/cudnn/block_sparse_attention/__init__.py
@@ -1,5 +1,5 @@
-# Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
from importlib import import_module
diff --git a/python/cudnn/block_sparse_attention/_interface.py b/python/cudnn/block_sparse_attention/_interface.py
index 2ef8459c0..09f409bba 100755
--- a/python/cudnn/block_sparse_attention/_interface.py
+++ b/python/cudnn/block_sparse_attention/_interface.py
@@ -1,4 +1,5 @@
# Copyright (c) 2025, Jay Shah, Ganesh Bikshandi, Ying Zhang, Vijay Thakkar, Pradeep Ramani, Tri Dao.
+# SPDX-License-Identifier: MIT
# BSA attention interface for SM90/SM100 block-sparse kernels.
import math
diff --git a/python/cudnn/block_sparse_attention/api.py b/python/cudnn/block_sparse_attention/api.py
index 562d5daca..98cc870e6 100644
--- a/python/cudnn/block_sparse_attention/api.py
+++ b/python/cudnn/block_sparse_attention/api.py
@@ -1,5 +1,5 @@
-# Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
"""Public wrappers for the CuTe DSL block-sparse attention kernels."""
diff --git a/python/cudnn/block_sparse_attention/csrc/__init__.py b/python/cudnn/block_sparse_attention/csrc/__init__.py
index 4688a3d18..52a7a9daf 100644
--- a/python/cudnn/block_sparse_attention/csrc/__init__.py
+++ b/python/cudnn/block_sparse_attention/csrc/__init__.py
@@ -1,2 +1,2 @@
-# Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
diff --git a/python/cudnn/block_sparse_attention/csrc/bwd/__init__.py b/python/cudnn/block_sparse_attention/csrc/bwd/__init__.py
index e69de29bb..52a7a9daf 100644
--- a/python/cudnn/block_sparse_attention/csrc/bwd/__init__.py
+++ b/python/cudnn/block_sparse_attention/csrc/bwd/__init__.py
@@ -0,0 +1,2 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
diff --git a/python/cudnn/block_sparse_attention/csrc/bwd/bsa_bwd_postprocess.py b/python/cudnn/block_sparse_attention/csrc/bwd/bsa_bwd_postprocess.py
index 31e56f20f..59468994e 100644
--- a/python/cudnn/block_sparse_attention/csrc/bwd/bsa_bwd_postprocess.py
+++ b/python/cudnn/block_sparse_attention/csrc/bwd/bsa_bwd_postprocess.py
@@ -1,4 +1,5 @@
# Copyright (c) 2025, Jay Shah, Ganesh Bikshandi, Ying Zhang, Vijay Thakkar, Pradeep Ramani, Tri Dao.
+# SPDX-License-Identifier: MIT
# A reimplementation of https://github.com/Dao-AILab/flash-attention/blob/main/hopper/flash_bwd_postprocess_kernel.h
# from Cutlass C++ to Cute-DSL.
import math
diff --git a/python/cudnn/block_sparse_attention/csrc/bwd/bsa_bwd_prepost.py b/python/cudnn/block_sparse_attention/csrc/bwd/bsa_bwd_prepost.py
index 8b927015e..af623d520 100644
--- a/python/cudnn/block_sparse_attention/csrc/bwd/bsa_bwd_prepost.py
+++ b/python/cudnn/block_sparse_attention/csrc/bwd/bsa_bwd_prepost.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import os
import re
from functools import lru_cache
diff --git a/python/cudnn/block_sparse_attention/csrc/bwd/bsa_bwd_preprocess.py b/python/cudnn/block_sparse_attention/csrc/bwd/bsa_bwd_preprocess.py
index 885b18610..8946cc16f 100644
--- a/python/cudnn/block_sparse_attention/csrc/bwd/bsa_bwd_preprocess.py
+++ b/python/cudnn/block_sparse_attention/csrc/bwd/bsa_bwd_preprocess.py
@@ -1,4 +1,5 @@
# Copyright (c) 2025, Jay Shah, Ganesh Bikshandi, Ying Zhang, Vijay Thakkar, Pradeep Ramani, Tri Dao.
+# SPDX-License-Identifier: MIT
# A reimplementation of https://github.com/Dao-AILab/flash-attention/blob/main/hopper/flash_bwd_preprocess_kernel.h
# from Cutlass C++ to Cute-DSL.
#
diff --git a/python/cudnn/block_sparse_attention/csrc/bwd/bucketed_k2q_csr.py b/python/cudnn/block_sparse_attention/csrc/bwd/bucketed_k2q_csr.py
index e11ed68df..41c495533 100644
--- a/python/cudnn/block_sparse_attention/csrc/bwd/bucketed_k2q_csr.py
+++ b/python/cudnn/block_sparse_attention/csrc/bwd/bucketed_k2q_csr.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
from typing import Optional, Tuple
import cutlass
diff --git a/python/cudnn/block_sparse_attention/csrc/bwd/sm100_blk128/__init__.py b/python/cudnn/block_sparse_attention/csrc/bwd/sm100_blk128/__init__.py
index e69de29bb..52a7a9daf 100644
--- a/python/cudnn/block_sparse_attention/csrc/bwd/sm100_blk128/__init__.py
+++ b/python/cudnn/block_sparse_attention/csrc/bwd/sm100_blk128/__init__.py
@@ -0,0 +1,2 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
diff --git a/python/cudnn/block_sparse_attention/csrc/bwd/sm100_blk128/bsa_bwd_sm100.py b/python/cudnn/block_sparse_attention/csrc/bwd/sm100_blk128/bsa_bwd_sm100.py
index afa084030..0f70a47c9 100644
--- a/python/cudnn/block_sparse_attention/csrc/bwd/sm100_blk128/bsa_bwd_sm100.py
+++ b/python/cudnn/block_sparse_attention/csrc/bwd/sm100_blk128/bsa_bwd_sm100.py
@@ -1,4 +1,5 @@
# Copyright (c) 2025, Ted Zadouri, Markus Hoehnerbach, Jay Shah, Tri Dao.
+# SPDX-License-Identifier: MIT
import math
from typing import Callable, NamedTuple, Optional, Tuple
from functools import partial
diff --git a/python/cudnn/block_sparse_attention/csrc/bwd/sm100_blk64/__init__.py b/python/cudnn/block_sparse_attention/csrc/bwd/sm100_blk64/__init__.py
index e69de29bb..52a7a9daf 100644
--- a/python/cudnn/block_sparse_attention/csrc/bwd/sm100_blk64/__init__.py
+++ b/python/cudnn/block_sparse_attention/csrc/bwd/sm100_blk64/__init__.py
@@ -0,0 +1,2 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
diff --git a/python/cudnn/block_sparse_attention/csrc/bwd/sm100_blk64/bsa_bwd_sm100.py b/python/cudnn/block_sparse_attention/csrc/bwd/sm100_blk64/bsa_bwd_sm100.py
index 41d1716bc..a99143dad 100644
--- a/python/cudnn/block_sparse_attention/csrc/bwd/sm100_blk64/bsa_bwd_sm100.py
+++ b/python/cudnn/block_sparse_attention/csrc/bwd/sm100_blk64/bsa_bwd_sm100.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import cuda.bindings.driver as cuda
import cutlass
diff --git a/python/cudnn/block_sparse_attention/csrc/bwd/sm90_blk64/bsa_bwd_sm90.py b/python/cudnn/block_sparse_attention/csrc/bwd/sm90_blk64/bsa_bwd_sm90.py
index 3ca7009f5..8dee9e2c0 100644
--- a/python/cudnn/block_sparse_attention/csrc/bwd/sm90_blk64/bsa_bwd_sm90.py
+++ b/python/cudnn/block_sparse_attention/csrc/bwd/sm90_blk64/bsa_bwd_sm90.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""SM90 blk64 block-sparse backward kernels."""
import enum
diff --git a/python/cudnn/block_sparse_attention/csrc/fwd/__init__.py b/python/cudnn/block_sparse_attention/csrc/fwd/__init__.py
index e69de29bb..52a7a9daf 100644
--- a/python/cudnn/block_sparse_attention/csrc/fwd/__init__.py
+++ b/python/cudnn/block_sparse_attention/csrc/fwd/__init__.py
@@ -0,0 +1,2 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
diff --git a/python/cudnn/block_sparse_attention/csrc/fwd/sm100_blk128/__init__.py b/python/cudnn/block_sparse_attention/csrc/fwd/sm100_blk128/__init__.py
index e69de29bb..52a7a9daf 100644
--- a/python/cudnn/block_sparse_attention/csrc/fwd/sm100_blk128/__init__.py
+++ b/python/cudnn/block_sparse_attention/csrc/fwd/sm100_blk128/__init__.py
@@ -0,0 +1,2 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
diff --git a/python/cudnn/block_sparse_attention/csrc/fwd/sm100_blk128/bsa_fwd_sm100.py b/python/cudnn/block_sparse_attention/csrc/fwd/sm100_blk128/bsa_fwd_sm100.py
index 7883d2450..72c0a54b8 100644
--- a/python/cudnn/block_sparse_attention/csrc/fwd/sm100_blk128/bsa_fwd_sm100.py
+++ b/python/cudnn/block_sparse_attention/csrc/fwd/sm100_blk128/bsa_fwd_sm100.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
# Supported features:
# - BF16 & FP16 dtype
# - noncausal attention
diff --git a/python/cudnn/block_sparse_attention/csrc/fwd/sm100_blk64/bsa_fwd_combine.py b/python/cudnn/block_sparse_attention/csrc/fwd/sm100_blk64/bsa_fwd_combine.py
index ae962e1ea..19d05891f 100644
--- a/python/cudnn/block_sparse_attention/csrc/fwd/sm100_blk64/bsa_fwd_combine.py
+++ b/python/cudnn/block_sparse_attention/csrc/fwd/sm100_blk64/bsa_fwd_combine.py
@@ -1,4 +1,5 @@
# Copyright (c) 2025, Jay Shah, Ganesh Bikshandi, Ying Zhang, Vijay Thakkar, Pradeep Ramani, Tri Dao.
+# SPDX-License-Identifier: MIT
# A reimplementation of https://github.com/Dao-AILab/flash-attention/blob/main/hopper/flash_fwd_combine_kernel.h
# from Cutlass C++ to Cute-DSL.
import math
diff --git a/python/cudnn/block_sparse_attention/csrc/fwd/sm100_blk64/bsa_fwd_helpers.py b/python/cudnn/block_sparse_attention/csrc/fwd/sm100_blk64/bsa_fwd_helpers.py
index aeb21ccd4..db2012e53 100644
--- a/python/cudnn/block_sparse_attention/csrc/fwd/sm100_blk64/bsa_fwd_helpers.py
+++ b/python/cudnn/block_sparse_attention/csrc/fwd/sm100_blk64/bsa_fwd_helpers.py
@@ -1,4 +1,5 @@
# Copyright (c) 2025, Tri Dao.
+# SPDX-License-Identifier: MIT
from typing import Optional, Tuple
import cutlass
diff --git a/python/cudnn/block_sparse_attention/csrc/fwd/sm100_blk64/bsa_fwd_sm100.py b/python/cudnn/block_sparse_attention/csrc/fwd/sm100_blk64/bsa_fwd_sm100.py
index bd1865939..f3b1947d1 100644
--- a/python/cudnn/block_sparse_attention/csrc/fwd/sm100_blk64/bsa_fwd_sm100.py
+++ b/python/cudnn/block_sparse_attention/csrc/fwd/sm100_blk64/bsa_fwd_sm100.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
# Supported features:
# - BF16 & FP16 dtype
# - noncausal attention
diff --git a/python/cudnn/block_sparse_attention/csrc/fwd/sm120_blk64/bsa_fwd_sm120.py b/python/cudnn/block_sparse_attention/csrc/fwd/sm120_blk64/bsa_fwd_sm120.py
index 8ca1f2cf9..919148bc8 100644
--- a/python/cudnn/block_sparse_attention/csrc/fwd/sm120_blk64/bsa_fwd_sm120.py
+++ b/python/cudnn/block_sparse_attention/csrc/fwd/sm120_blk64/bsa_fwd_sm120.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import operator
import cutlass
diff --git a/python/cudnn/block_sparse_attention/csrc/fwd/sm90_blk64/bsa_fwd_sm90.py b/python/cudnn/block_sparse_attention/csrc/fwd/sm90_blk64/bsa_fwd_sm90.py
index c794460e7..85e474bd3 100644
--- a/python/cudnn/block_sparse_attention/csrc/fwd/sm90_blk64/bsa_fwd_sm90.py
+++ b/python/cudnn/block_sparse_attention/csrc/fwd/sm90_blk64/bsa_fwd_sm90.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
from dataclasses import dataclass
import cuda.bindings.driver as cuda
diff --git a/python/cudnn/block_sparse_attention/csrc/utils/__init__.py b/python/cudnn/block_sparse_attention/csrc/utils/__init__.py
index e69de29bb..52a7a9daf 100644
--- a/python/cudnn/block_sparse_attention/csrc/utils/__init__.py
+++ b/python/cudnn/block_sparse_attention/csrc/utils/__init__.py
@@ -0,0 +1,2 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
diff --git a/python/cudnn/block_sparse_attention/csrc/utils/batched_static_scheduler.py b/python/cudnn/block_sparse_attention/csrc/utils/batched_static_scheduler.py
index 9bb24a3da..1a8c0886a 100644
--- a/python/cudnn/block_sparse_attention/csrc/utils/batched_static_scheduler.py
+++ b/python/cudnn/block_sparse_attention/csrc/utils/batched_static_scheduler.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
from dataclasses import dataclass
import cutlass.cute as cute
diff --git a/python/cudnn/block_sparse_attention/csrc/utils/block_info.py b/python/cudnn/block_sparse_attention/csrc/utils/block_info.py
index 6aee6b445..a3ac2ee65 100644
--- a/python/cudnn/block_sparse_attention/csrc/utils/block_info.py
+++ b/python/cudnn/block_sparse_attention/csrc/utils/block_info.py
@@ -1,4 +1,5 @@
# Copyright (c) 2025, Jay Shah, Ganesh Bikshandi, Ying Zhang, Vijay Thakkar, Pradeep Ramani, Tri Dao.
+# SPDX-License-Identifier: MIT
from typing import Tuple, Optional
from dataclasses import dataclass
diff --git a/python/cudnn/block_sparse_attention/csrc/utils/block_sparse_tile_scheduler.py b/python/cudnn/block_sparse_attention/csrc/utils/block_sparse_tile_scheduler.py
index 510dccd68..c95f481df 100644
--- a/python/cudnn/block_sparse_attention/csrc/utils/block_sparse_tile_scheduler.py
+++ b/python/cudnn/block_sparse_attention/csrc/utils/block_sparse_tile_scheduler.py
@@ -1,4 +1,5 @@
# Copyright (c) 2025, Tri Dao.
+# SPDX-License-Identifier: MIT
from typing import Tuple, Protocol, runtime_checkable
from dataclasses import dataclass
diff --git a/python/cudnn/block_sparse_attention/csrc/utils/copy_utils.py b/python/cudnn/block_sparse_attention/csrc/utils/copy_utils.py
index 07b49632f..23e1c6d50 100644
--- a/python/cudnn/block_sparse_attention/csrc/utils/copy_utils.py
+++ b/python/cudnn/block_sparse_attention/csrc/utils/copy_utils.py
@@ -1,5 +1,6 @@
# Copyright (c) 2025, Wentao Guo, Ted Zadouri, Tri Dao.
# Copyright (c) 2025-2026, QuACK team.
+# SPDX-License-Identifier: MIT
#
# Selected helpers are adapted from quack-kernels 0.4.1 (Apache-2.0) and
# maintained locally so BSA does not require Quack at runtime.
diff --git a/python/cudnn/block_sparse_attention/csrc/utils/cute_dsl_utils.py b/python/cudnn/block_sparse_attention/csrc/utils/cute_dsl_utils.py
index a22e7c7a7..3a8d94eed 100644
--- a/python/cudnn/block_sparse_attention/csrc/utils/cute_dsl_utils.py
+++ b/python/cudnn/block_sparse_attention/csrc/utils/cute_dsl_utils.py
@@ -1,5 +1,6 @@
# Copyright (c) 2025, Tri Dao.
# Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: MIT
#
# The ParamsBase, make_fake_tensor, and sub_packed_f32x2 implementations in
# this file are adapted from quack-kernels 0.4.1 (Apache-2.0) and modified for
diff --git a/python/cudnn/block_sparse_attention/csrc/utils/kernel_utils.py b/python/cudnn/block_sparse_attention/csrc/utils/kernel_utils.py
index a3ac5c138..d70b067a1 100644
--- a/python/cudnn/block_sparse_attention/csrc/utils/kernel_utils.py
+++ b/python/cudnn/block_sparse_attention/csrc/utils/kernel_utils.py
@@ -1,4 +1,5 @@
# Copyright (c) 2025, Tri Dao.
+# SPDX-License-Identifier: MIT
import math
import inspect
diff --git a/python/cudnn/block_sparse_attention/csrc/utils/layout_utils.py b/python/cudnn/block_sparse_attention/csrc/utils/layout_utils.py
index bef316a66..6b3f42ebf 100644
--- a/python/cudnn/block_sparse_attention/csrc/utils/layout_utils.py
+++ b/python/cudnn/block_sparse_attention/csrc/utils/layout_utils.py
@@ -1,4 +1,5 @@
# Copyright (c) 2025, Wentao Guo, Ted Zadouri, Tri Dao.
+# SPDX-License-Identifier: MIT
#
# Adapted from quack-kernels 0.4.1 (Apache-2.0) and kept local so the
# block-sparse kernels use the same self-contained helper style as the other
diff --git a/python/cudnn/block_sparse_attention/csrc/utils/mma_sm100_desc.py b/python/cudnn/block_sparse_attention/csrc/utils/mma_sm100_desc.py
index 48e891253..a58f9c4c7 100644
--- a/python/cudnn/block_sparse_attention/csrc/utils/mma_sm100_desc.py
+++ b/python/cudnn/block_sparse_attention/csrc/utils/mma_sm100_desc.py
@@ -1,4 +1,5 @@
# Copyright (c) 2025, Tri Dao.
+# SPDX-License-Identifier: MIT
# Ported Cutlass code from C++ to Python:
# https://github.com/NVIDIA/cutlass/blob/main/include/cute/arch/mma_sm100_desc.hpp
# https://github.com/NVIDIA/cutlass/blob/main/include/cute/atom/mma_traits_sm100.hpp
diff --git a/python/cudnn/block_sparse_attention/csrc/utils/named_barrier.py b/python/cudnn/block_sparse_attention/csrc/utils/named_barrier.py
index 06f04acef..cb60e38ee 100644
--- a/python/cudnn/block_sparse_attention/csrc/utils/named_barrier.py
+++ b/python/cudnn/block_sparse_attention/csrc/utils/named_barrier.py
@@ -1,4 +1,5 @@
# Copyright (c) 2025, Jay Shah, Ganesh Bikshandi, Ying Zhang, Vijay Thakkar, Pradeep Ramani, Tri Dao.
+# SPDX-License-Identifier: MIT
import enum
diff --git a/python/cudnn/block_sparse_attention/csrc/utils/pack_gqa.py b/python/cudnn/block_sparse_attention/csrc/utils/pack_gqa.py
index 0b9384c8f..c07a0867a 100644
--- a/python/cudnn/block_sparse_attention/csrc/utils/pack_gqa.py
+++ b/python/cudnn/block_sparse_attention/csrc/utils/pack_gqa.py
@@ -1,4 +1,5 @@
# Copyright (c) 2025, Tri Dao.
+# SPDX-License-Identifier: MIT
import cutlass
diff --git a/python/cudnn/block_sparse_attention/csrc/utils/pipeline.py b/python/cudnn/block_sparse_attention/csrc/utils/pipeline.py
index c494a3003..6b8714ab4 100644
--- a/python/cudnn/block_sparse_attention/csrc/utils/pipeline.py
+++ b/python/cudnn/block_sparse_attention/csrc/utils/pipeline.py
@@ -1,4 +1,5 @@
# Copyright (c) 2025, Tri Dao.
+# SPDX-License-Identifier: MIT
from typing import Optional
from dataclasses import dataclass
diff --git a/python/cudnn/block_sparse_attention/csrc/utils/seqlen_info.py b/python/cudnn/block_sparse_attention/csrc/utils/seqlen_info.py
index b37da301a..57b5ac65a 100644
--- a/python/cudnn/block_sparse_attention/csrc/utils/seqlen_info.py
+++ b/python/cudnn/block_sparse_attention/csrc/utils/seqlen_info.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
from typing import Optional
from dataclasses import dataclass
diff --git a/python/cudnn/block_sparse_attention/csrc/utils/sm90_utils.py b/python/cudnn/block_sparse_attention/csrc/utils/sm90_utils.py
index 44af82628..22766e1b8 100644
--- a/python/cudnn/block_sparse_attention/csrc/utils/sm90_utils.py
+++ b/python/cudnn/block_sparse_attention/csrc/utils/sm90_utils.py
@@ -1,4 +1,5 @@
# Copyright (c) 2025, Tri Dao.
+# SPDX-License-Identifier: MIT
#
# Adapted from quack-kernels 0.4.1 (Apache-2.0). These helpers are local to
# BSA to avoid coupling the cudnn-frontend CuTe DSL package to Quack.
diff --git a/python/cudnn/block_sparse_attention/csrc/utils/softmax.py b/python/cudnn/block_sparse_attention/csrc/utils/softmax.py
index 7b8fa8c83..6787184c4 100644
--- a/python/cudnn/block_sparse_attention/csrc/utils/softmax.py
+++ b/python/cudnn/block_sparse_attention/csrc/utils/softmax.py
@@ -1,4 +1,5 @@
# Copyright (c) 2025, Tri Dao.
+# SPDX-License-Identifier: MIT
from typing import Tuple
from dataclasses import dataclass
diff --git a/python/cudnn/block_sparse_attention/csrc/utils/tcgen05_mma_helpers.py b/python/cudnn/block_sparse_attention/csrc/utils/tcgen05_mma_helpers.py
index 7e3808a36..db474e1c0 100644
--- a/python/cudnn/block_sparse_attention/csrc/utils/tcgen05_mma_helpers.py
+++ b/python/cudnn/block_sparse_attention/csrc/utils/tcgen05_mma_helpers.py
@@ -1,4 +1,5 @@
# Copyright (c) 2025, Tri Dao.
+# SPDX-License-Identifier: MIT
from typing import Optional, Tuple
import cutlass
diff --git a/python/cudnn/block_sparse_attention/csrc/utils/tile_scheduler.py b/python/cudnn/block_sparse_attention/csrc/utils/tile_scheduler.py
index dc953577e..74a7c177d 100644
--- a/python/cudnn/block_sparse_attention/csrc/utils/tile_scheduler.py
+++ b/python/cudnn/block_sparse_attention/csrc/utils/tile_scheduler.py
@@ -1,4 +1,5 @@
# Copyright (c) 2025, Tri Dao, Siyu Wang, Shengbin Di, Yuxi Chi, Johnsonms, Linfeng Zheng, Haoyan Huang, Lanbo Li, Yun Zhong, Man Yuan, Minmin Sun, Yong Li, Wei Lin.
+# SPDX-License-Identifier: MIT
from enum import IntEnum, auto
from typing import Optional, Tuple
diff --git a/python/cudnn/collect_env.py b/python/cudnn/collect_env.py
index d79a791b8..1bbab7b2e 100644
--- a/python/cudnn/collect_env.py
+++ b/python/cudnn/collect_env.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Collect environment information for cuDNN frontend bug reports.
Usage (any of):
diff --git a/python/cudnn/datatypes.py b/python/cudnn/datatypes.py
index ebb024e58..c3bde231c 100644
--- a/python/cudnn/datatypes.py
+++ b/python/cudnn/datatypes.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import sys
import importlib
diff --git a/python/cudnn/deepseek_sparse_attention/__init__.py b/python/cudnn/deepseek_sparse_attention/__init__.py
index 7f900037f..474656321 100644
--- a/python/cudnn/deepseek_sparse_attention/__init__.py
+++ b/python/cudnn/deepseek_sparse_attention/__init__.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
from importlib import import_module
_SYMBOLS = {
diff --git a/python/cudnn/deepseek_sparse_attention/indexer_backward/__init__.py b/python/cudnn/deepseek_sparse_attention/indexer_backward/__init__.py
index fbae12785..d5298636c 100644
--- a/python/cudnn/deepseek_sparse_attention/indexer_backward/__init__.py
+++ b/python/cudnn/deepseek_sparse_attention/indexer_backward/__init__.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
from .api import (
DenseIndexerBackward,
IndexerBackward,
diff --git a/python/cudnn/deepseek_sparse_attention/indexer_backward/api.py b/python/cudnn/deepseek_sparse_attention/indexer_backward/api.py
index 3fa6c2e3c..5099b4376 100644
--- a/python/cudnn/deepseek_sparse_attention/indexer_backward/api.py
+++ b/python/cudnn/deepseek_sparse_attention/indexer_backward/api.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""APIBase wrappers for sparse and dense indexer backward.
Combines backend-specific CuTe-DSL kernels:
diff --git a/python/cudnn/deepseek_sparse_attention/indexer_backward/dense_indexer_backward_sm100.py b/python/cudnn/deepseek_sparse_attention/indexer_backward/dense_indexer_backward_sm100.py
index 086f33de8..c14238d31 100644
--- a/python/cudnn/deepseek_sparse_attention/indexer_backward/dense_indexer_backward_sm100.py
+++ b/python/cudnn/deepseek_sparse_attention/indexer_backward/dense_indexer_backward_sm100.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Indexer Backward — Dense Mode SM100 CuTe-DSL, 3-kernel design.
diff --git a/python/cudnn/deepseek_sparse_attention/indexer_backward/dense_indexer_backward_sm90.py b/python/cudnn/deepseek_sparse_attention/indexer_backward/dense_indexer_backward_sm90.py
index 83c80e71d..aa80a49bf 100644
--- a/python/cudnn/deepseek_sparse_attention/indexer_backward/dense_indexer_backward_sm90.py
+++ b/python/cudnn/deepseek_sparse_attention/indexer_backward/dense_indexer_backward_sm90.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Dense Indexer Backward — SM90 CuTe-DSL factory."""
from __future__ import annotations
diff --git a/python/cudnn/deepseek_sparse_attention/indexer_backward/indexer_backward_sm100.py b/python/cudnn/deepseek_sparse_attention/indexer_backward/indexer_backward_sm100.py
index 8b657cafb..0461f2858 100644
--- a/python/cudnn/deepseek_sparse_attention/indexer_backward/indexer_backward_sm100.py
+++ b/python/cudnn/deepseek_sparse_attention/indexer_backward/indexer_backward_sm100.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Indexer Backward — SM100 CuTe-DSL, 3-kernel design.
diff --git a/python/cudnn/deepseek_sparse_attention/indexer_backward/indexer_backward_sm90.py b/python/cudnn/deepseek_sparse_attention/indexer_backward/indexer_backward_sm90.py
index 558e8d614..548b56b21 100644
--- a/python/cudnn/deepseek_sparse_attention/indexer_backward/indexer_backward_sm90.py
+++ b/python/cudnn/deepseek_sparse_attention/indexer_backward/indexer_backward_sm90.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Indexer Backward — SM90 CuTe-DSL, 3-kernel design (Hopper).
diff --git a/python/cudnn/deepseek_sparse_attention/indexer_forward/__init__.py b/python/cudnn/deepseek_sparse_attention/indexer_forward/__init__.py
index 4b8df4c14..f5544e3c6 100644
--- a/python/cudnn/deepseek_sparse_attention/indexer_forward/__init__.py
+++ b/python/cudnn/deepseek_sparse_attention/indexer_forward/__init__.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
from .api import IndexerForward, indexer_forward_wrapper
__all__ = ["IndexerForward", "indexer_forward_wrapper"]
diff --git a/python/cudnn/deepseek_sparse_attention/indexer_forward/_interface.py b/python/cudnn/deepseek_sparse_attention/indexer_forward/_interface.py
index df454602b..baf925d83 100644
--- a/python/cudnn/deepseek_sparse_attention/indexer_forward/_interface.py
+++ b/python/cudnn/deepseek_sparse_attention/indexer_forward/_interface.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Indexer Forward Interface — CuTe DSL backend.
diff --git a/python/cudnn/deepseek_sparse_attention/indexer_forward/_interface_sm90.py b/python/cudnn/deepseek_sparse_attention/indexer_forward/_interface_sm90.py
index 78e5fb574..b96474668 100644
--- a/python/cudnn/deepseek_sparse_attention/indexer_forward/_interface_sm90.py
+++ b/python/cudnn/deepseek_sparse_attention/indexer_forward/_interface_sm90.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Indexer forward interface for the SM90 CuTe DSL backend."""
from __future__ import annotations
diff --git a/python/cudnn/deepseek_sparse_attention/indexer_forward/api.py b/python/cudnn/deepseek_sparse_attention/indexer_forward/api.py
index d35e0da8b..ccf4b722d 100644
--- a/python/cudnn/deepseek_sparse_attention/indexer_forward/api.py
+++ b/python/cudnn/deepseek_sparse_attention/indexer_forward/api.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""APIBase wrapper and dispatcher for indexer forward CuTe DSL score kernels.
Produces dense indexer scores Q @ K^T with per-head ReLU, weighted head
diff --git a/python/cudnn/deepseek_sparse_attention/indexer_forward/indexer_fwd_sm100.py b/python/cudnn/deepseek_sparse_attention/indexer_forward/indexer_fwd_sm100.py
index 8c5adef2d..e21a11011 100644
--- a/python/cudnn/deepseek_sparse_attention/indexer_forward/indexer_fwd_sm100.py
+++ b/python/cudnn/deepseek_sparse_attention/indexer_forward/indexer_fwd_sm100.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Indexer QK Forward Kernel — SM100 Cute-DSL Implementation.
diff --git a/python/cudnn/deepseek_sparse_attention/indexer_forward/indexer_fwd_sm90.py b/python/cudnn/deepseek_sparse_attention/indexer_forward/indexer_fwd_sm90.py
index c352e5486..6c37cea9a 100644
--- a/python/cudnn/deepseek_sparse_attention/indexer_forward/indexer_fwd_sm90.py
+++ b/python/cudnn/deepseek_sparse_attention/indexer_forward/indexer_fwd_sm90.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""SM90 indexer forward kernel - direct CuTeDSL port of the old C++ path.
This kernel intentionally keeps the SM90 C++ Q/K staging topology:
diff --git a/python/cudnn/deepseek_sparse_attention/indexer_top_k/__init__.py b/python/cudnn/deepseek_sparse_attention/indexer_top_k/__init__.py
index 481ef694e..c00204c68 100644
--- a/python/cudnn/deepseek_sparse_attention/indexer_top_k/__init__.py
+++ b/python/cudnn/deepseek_sparse_attention/indexer_top_k/__init__.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
from .api import (
IndexerTopK,
indexer_top_k_wrapper,
diff --git a/python/cudnn/deepseek_sparse_attention/indexer_top_k/api.py b/python/cudnn/deepseek_sparse_attention/indexer_top_k/api.py
index fd5a107a6..f3097b63a 100644
--- a/python/cudnn/deepseek_sparse_attention/indexer_top_k/api.py
+++ b/python/cudnn/deepseek_sparse_attention/indexer_top_k/api.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""APIBase wrapper for the DSA indexer top-K CuTe DSL kernel."""
from __future__ import annotations
diff --git a/python/cudnn/deepseek_sparse_attention/indexer_top_k/block_scan.py b/python/cudnn/deepseek_sparse_attention/indexer_top_k/block_scan.py
index f9ae0a904..26028fca5 100644
--- a/python/cudnn/deepseek_sparse_attention/indexer_top_k/block_scan.py
+++ b/python/cudnn/deepseek_sparse_attention/indexer_top_k/block_scan.py
@@ -1,4 +1,5 @@
-# Copyright (c) 2026, NVIDIA CORPORATION. All rights reserved.
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff --git a/python/cudnn/deepseek_sparse_attention/indexer_top_k/compactify.py b/python/cudnn/deepseek_sparse_attention/indexer_top_k/compactify.py
index ea1997711..d54fdca8d 100644
--- a/python/cudnn/deepseek_sparse_attention/indexer_top_k/compactify.py
+++ b/python/cudnn/deepseek_sparse_attention/indexer_top_k/compactify.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""CuTe DSL row-wise compactify for top-K index tensors.
This module provides one index utility: compactify(idxs) packs valid entries
diff --git a/python/cudnn/deepseek_sparse_attention/indexer_top_k/indexer_top_k_decode_varlen.py b/python/cudnn/deepseek_sparse_attention/indexer_top_k/indexer_top_k_decode_varlen.py
index 52ec85758..61f77aef4 100644
--- a/python/cudnn/deepseek_sparse_attention/indexer_top_k/indexer_top_k_decode_varlen.py
+++ b/python/cudnn/deepseek_sparse_attention/indexer_top_k/indexer_top_k_decode_varlen.py
@@ -1,4 +1,5 @@
-# Copyright (c) 2026, NVIDIA CORPORATION. All rights reserved.
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: MIT
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff --git a/python/cudnn/deepseek_sparse_attention/indexer_top_k/indexer_top_k_varlen_util.py b/python/cudnn/deepseek_sparse_attention/indexer_top_k/indexer_top_k_varlen_util.py
index af9d49b3f..b6a840d68 100644
--- a/python/cudnn/deepseek_sparse_attention/indexer_top_k/indexer_top_k_varlen_util.py
+++ b/python/cudnn/deepseek_sparse_attention/indexer_top_k/indexer_top_k_varlen_util.py
@@ -1,4 +1,5 @@
-# Copyright (c) 2026, NVIDIA CORPORATION. All rights reserved.
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: MIT
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff --git a/python/cudnn/deepseek_sparse_attention/indexer_top_k/local_to_global_dsl.py b/python/cudnn/deepseek_sparse_attention/indexer_top_k/local_to_global_dsl.py
index bfa61b73f..b59187eb4 100644
--- a/python/cudnn/deepseek_sparse_attention/indexer_top_k/local_to_global_dsl.py
+++ b/python/cudnn/deepseek_sparse_attention/indexer_top_k/local_to_global_dsl.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""CuTe DSL local-to-global topK index conversion.
The topK backends return local K ids. This module converts them to the public
diff --git a/python/cudnn/deepseek_sparse_attention/score_recompute/__init__.py b/python/cudnn/deepseek_sparse_attention/score_recompute/__init__.py
index d5434b6ff..aa749feb6 100644
--- a/python/cudnn/deepseek_sparse_attention/score_recompute/__init__.py
+++ b/python/cudnn/deepseek_sparse_attention/score_recompute/__init__.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
from .api import (
SparseIndexerScoreRecompute,
sparse_indexer_score_recompute_wrapper,
diff --git a/python/cudnn/deepseek_sparse_attention/score_recompute/_interface_sm100.py b/python/cudnn/deepseek_sparse_attention/score_recompute/_interface_sm100.py
index 1310cc690..f55a6b5dc 100644
--- a/python/cudnn/deepseek_sparse_attention/score_recompute/_interface_sm100.py
+++ b/python/cudnn/deepseek_sparse_attention/score_recompute/_interface_sm100.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Score Recompute Interface (SM100 Cute-DSL wrapper).
diff --git a/python/cudnn/deepseek_sparse_attention/score_recompute/_interface_sm90.py b/python/cudnn/deepseek_sparse_attention/score_recompute/_interface_sm90.py
index 29fd6d94c..0f0f34baa 100644
--- a/python/cudnn/deepseek_sparse_attention/score_recompute/_interface_sm90.py
+++ b/python/cudnn/deepseek_sparse_attention/score_recompute/_interface_sm90.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Score Recompute Interface (SM90 Cute-DSL wrapper).
diff --git a/python/cudnn/deepseek_sparse_attention/score_recompute/api.py b/python/cudnn/deepseek_sparse_attention/score_recompute/api.py
index b8d044063..f959e583a 100644
--- a/python/cudnn/deepseek_sparse_attention/score_recompute/api.py
+++ b/python/cudnn/deepseek_sparse_attention/score_recompute/api.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""APIBase wrappers for the four DSA score-recompute operations.
Wraps the SM100 and SM90 CuTe-DSL score kernels. Each backend provides
diff --git a/python/cudnn/deepseek_sparse_attention/score_recompute/dense_score_recompute_sm100.py b/python/cudnn/deepseek_sparse_attention/score_recompute/dense_score_recompute_sm100.py
index 797ba9975..f83fdf991 100644
--- a/python/cudnn/deepseek_sparse_attention/score_recompute/dense_score_recompute_sm100.py
+++ b/python/cudnn/deepseek_sparse_attention/score_recompute/dense_score_recompute_sm100.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Dense Backward Score Kernel — SM100 Cute-DSL Implementation.
diff --git a/python/cudnn/deepseek_sparse_attention/score_recompute/dense_score_recompute_sm90.py b/python/cudnn/deepseek_sparse_attention/score_recompute/dense_score_recompute_sm90.py
index 852106e42..fad2c58db 100644
--- a/python/cudnn/deepseek_sparse_attention/score_recompute/dense_score_recompute_sm90.py
+++ b/python/cudnn/deepseek_sparse_attention/score_recompute/dense_score_recompute_sm90.py
@@ -1,5 +1,6 @@
# Copyright (c) 2025, Jay Shah, Ganesh Bikshandi, Ying Zhang, Vijay Thakkar, Pradeep Ramani, Tri Dao.
# Copyright (c) 2026, Jerry Chen
+# SPDX-License-Identifier: MIT
import math
import operator
diff --git a/python/cudnn/deepseek_sparse_attention/score_recompute/pack_gqa.py b/python/cudnn/deepseek_sparse_attention/score_recompute/pack_gqa.py
index 94bfac64e..9814388f4 100644
--- a/python/cudnn/deepseek_sparse_attention/score_recompute/pack_gqa.py
+++ b/python/cudnn/deepseek_sparse_attention/score_recompute/pack_gqa.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import cutlass
import cutlass.cute as cute
diff --git a/python/cudnn/deepseek_sparse_attention/score_recompute/sparse_score_recompute_sm100.py b/python/cudnn/deepseek_sparse_attention/score_recompute/sparse_score_recompute_sm100.py
index 79f6b208c..457b01215 100644
--- a/python/cudnn/deepseek_sparse_attention/score_recompute/sparse_score_recompute_sm100.py
+++ b/python/cudnn/deepseek_sparse_attention/score_recompute/sparse_score_recompute_sm100.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: MIT
+
"""
Sparse Backward Score Kernel — SM100 Cute-DSL Implementation.
diff --git a/python/cudnn/deepseek_sparse_attention/score_recompute/sparse_score_recompute_sm90.py b/python/cudnn/deepseek_sparse_attention/score_recompute/sparse_score_recompute_sm90.py
index 5c87aa846..af5ff950d 100644
--- a/python/cudnn/deepseek_sparse_attention/score_recompute/sparse_score_recompute_sm90.py
+++ b/python/cudnn/deepseek_sparse_attention/score_recompute/sparse_score_recompute_sm90.py
@@ -1,5 +1,6 @@
# Copyright (c) 2025, Jay Shah, Ganesh Bikshandi, Ying Zhang, Vijay Thakkar, Pradeep Ramani, Tri Dao.
# Copyright (c) 2026, Jerry Chen
+# SPDX-License-Identifier: MIT
import math
import operator
diff --git a/python/cudnn/deepseek_sparse_attention/sparse_attention_backward/__init__.py b/python/cudnn/deepseek_sparse_attention/sparse_attention_backward/__init__.py
index 039c5be6a..3d362177c 100644
--- a/python/cudnn/deepseek_sparse_attention/sparse_attention_backward/__init__.py
+++ b/python/cudnn/deepseek_sparse_attention/sparse_attention_backward/__init__.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
from .api import SparseAttentionBackward, sparse_attention_backward_wrapper
__all__ = ["SparseAttentionBackward", "sparse_attention_backward_wrapper"]
diff --git a/python/cudnn/deepseek_sparse_attention/sparse_attention_backward/_interface_sm100.py b/python/cudnn/deepseek_sparse_attention/sparse_attention_backward/_interface_sm100.py
index 3030f8198..642b68a38 100644
--- a/python/cudnn/deepseek_sparse_attention/sparse_attention_backward/_interface_sm100.py
+++ b/python/cudnn/deepseek_sparse_attention/sparse_attention_backward/_interface_sm100.py
@@ -1,4 +1,5 @@
# Copyright (c) 2026, Jerry Chen
+# SPDX-License-Identifier: MIT
import math
from typing import Optional, Tuple
diff --git a/python/cudnn/deepseek_sparse_attention/sparse_attention_backward/_interface_sm90.py b/python/cudnn/deepseek_sparse_attention/sparse_attention_backward/_interface_sm90.py
index d2ce20087..a0e497ca2 100644
--- a/python/cudnn/deepseek_sparse_attention/sparse_attention_backward/_interface_sm90.py
+++ b/python/cudnn/deepseek_sparse_attention/sparse_attention_backward/_interface_sm90.py
@@ -1,5 +1,6 @@
# Copyright (c) 2025, Jay Shah, Ganesh Bikshandi, Ying Zhang, Vijay Thakkar, Pradeep Ramani, Tri Dao.
# Copyright (c) 2026, Jerry Chen
+# SPDX-License-Identifier: MIT
import math
from typing import Optional, Tuple
diff --git a/python/cudnn/deepseek_sparse_attention/sparse_attention_backward/api.py b/python/cudnn/deepseek_sparse_attention/sparse_attention_backward/api.py
index 7ce340394..f8c6753ee 100644
--- a/python/cudnn/deepseek_sparse_attention/sparse_attention_backward/api.py
+++ b/python/cudnn/deepseek_sparse_attention/sparse_attention_backward/api.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""APIBase wrapper for DeepSeek Sparse Attention backward.
The wrapper dispatches to the Hopper (SM90) or Blackwell (SM100) CuTe DSL
diff --git a/python/cudnn/deepseek_sparse_attention/sparse_attention_backward/dsa_bwd_sm100.py b/python/cudnn/deepseek_sparse_attention/sparse_attention_backward/dsa_bwd_sm100.py
index 5d78f31f0..665d1e913 100644
--- a/python/cudnn/deepseek_sparse_attention/sparse_attention_backward/dsa_bwd_sm100.py
+++ b/python/cudnn/deepseek_sparse_attention/sparse_attention_backward/dsa_bwd_sm100.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: MIT
+
import cuda.bindings.driver as cuda
import math
from typing import Tuple, Type, Optional
diff --git a/python/cudnn/deepseek_sparse_attention/sparse_attention_backward/dsa_bwd_sm90.py b/python/cudnn/deepseek_sparse_attention/sparse_attention_backward/dsa_bwd_sm90.py
index b940e38e4..0404a7a7e 100644
--- a/python/cudnn/deepseek_sparse_attention/sparse_attention_backward/dsa_bwd_sm90.py
+++ b/python/cudnn/deepseek_sparse_attention/sparse_attention_backward/dsa_bwd_sm90.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import math
import operator
from functools import partial
diff --git a/python/cudnn/deepseek_sparse_attention/utils/__init__.py b/python/cudnn/deepseek_sparse_attention/utils/__init__.py
index 388472953..62292fe8a 100644
--- a/python/cudnn/deepseek_sparse_attention/utils/__init__.py
+++ b/python/cudnn/deepseek_sparse_attention/utils/__init__.py
@@ -1 +1,4 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Shared helpers for DeepSeek sparse attention CuTe DSL kernels."""
diff --git a/python/cudnn/deepseek_sparse_attention/utils/compiler.py b/python/cudnn/deepseek_sparse_attention/utils/compiler.py
index 65b68e81f..1a2969be0 100644
--- a/python/cudnn/deepseek_sparse_attention/utils/compiler.py
+++ b/python/cudnn/deepseek_sparse_attention/utils/compiler.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Shared cute.compile option helpers.
The cute DSL compiler accepts ``--gpu-arch `` to lock SASS to a
diff --git a/python/cudnn/deepseek_sparse_attention/utils/copy.py b/python/cudnn/deepseek_sparse_attention/utils/copy.py
index 82c50a477..c6f8b7180 100644
--- a/python/cudnn/deepseek_sparse_attention/utils/copy.py
+++ b/python/cudnn/deepseek_sparse_attention/utils/copy.py
@@ -1,4 +1,5 @@
# Copyright (c) 2025, Wentao Guo, Ted Zadouri, Tri Dao.
+# SPDX-License-Identifier: MIT
"""Common CuTe DSL copy utilities used by DSA kernels."""
import math
diff --git a/python/cudnn/deepseek_sparse_attention/utils/runtime.py b/python/cudnn/deepseek_sparse_attention/utils/runtime.py
index 145fba12c..296057c56 100644
--- a/python/cudnn/deepseek_sparse_attention/utils/runtime.py
+++ b/python/cudnn/deepseek_sparse_attention/utils/runtime.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Runtime helpers shared by DSA Python wrappers."""
from contextlib import contextmanager
diff --git a/python/cudnn/deepseek_sparse_attention/utils/seqlen.py b/python/cudnn/deepseek_sparse_attention/utils/seqlen.py
index c3b299573..d6fd2d328 100644
--- a/python/cudnn/deepseek_sparse_attention/utils/seqlen.py
+++ b/python/cudnn/deepseek_sparse_attention/utils/seqlen.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
from typing import Optional
from dataclasses import dataclass
diff --git a/python/cudnn/deepseek_sparse_attention/utils/sm100/__init__.py b/python/cudnn/deepseek_sparse_attention/utils/sm100/__init__.py
index 5c3449f99..536bbb5e6 100644
--- a/python/cudnn/deepseek_sparse_attention/utils/sm100/__init__.py
+++ b/python/cudnn/deepseek_sparse_attention/utils/sm100/__init__.py
@@ -1 +1,4 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""SM100-specific helpers shared by DSA CuTe DSL kernels."""
diff --git a/python/cudnn/deepseek_sparse_attention/utils/sm100/gemm.py b/python/cudnn/deepseek_sparse_attention/utils/sm100/gemm.py
index 1607d8caf..bbae91173 100644
--- a/python/cudnn/deepseek_sparse_attention/utils/sm100/gemm.py
+++ b/python/cudnn/deepseek_sparse_attention/utils/sm100/gemm.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""SM100 GEMM helpers shared by DSA CuTe DSL kernels."""
import re
diff --git a/python/cudnn/deepseek_sparse_attention/utils/sm100/mma_desc.py b/python/cudnn/deepseek_sparse_attention/utils/sm100/mma_desc.py
index 2aa6acfce..7ef0a203a 100644
--- a/python/cudnn/deepseek_sparse_attention/utils/sm100/mma_desc.py
+++ b/python/cudnn/deepseek_sparse_attention/utils/sm100/mma_desc.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
# Ported Cutlass code from C++ to Python:
# https://github.com/NVIDIA/cutlass/blob/main/include/cute/arch/mma_sm100_desc.hpp
# https://github.com/NVIDIA/cutlass/blob/main/include/cute/atom/mma_traits_sm100.hpp
diff --git a/python/cudnn/deepseek_sparse_attention/utils/sm90/__init__.py b/python/cudnn/deepseek_sparse_attention/utils/sm90/__init__.py
index 3b027ca09..27e5eee90 100644
--- a/python/cudnn/deepseek_sparse_attention/utils/sm90/__init__.py
+++ b/python/cudnn/deepseek_sparse_attention/utils/sm90/__init__.py
@@ -1 +1,4 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""SM90-specific helpers shared by DSA CuTe DSL kernels."""
diff --git a/python/cudnn/deepseek_sparse_attention/utils/sm90/bwd_barriers.py b/python/cudnn/deepseek_sparse_attention/utils/sm90/bwd_barriers.py
index d376bb1a3..c3642ede0 100644
--- a/python/cudnn/deepseek_sparse_attention/utils/sm90/bwd_barriers.py
+++ b/python/cudnn/deepseek_sparse_attention/utils/sm90/bwd_barriers.py
@@ -1,5 +1,6 @@
# Copyright (c) 2025, Jay Shah, Ganesh Bikshandi, Ying Zhang, Vijay Thakkar, Pradeep Ramani, Tri Dao.
# Copyright (c) 2026, Jerry Chen
+# SPDX-License-Identifier: MIT
"""SM90 named-barrier id table for the FA / DSA backward kernels.
SM90 hardware named barriers are addressed by a 4-bit operand: only ids in
diff --git a/python/cudnn/deepseek_sparse_attention/utils/sm90/bwd_tile_scheduler.py b/python/cudnn/deepseek_sparse_attention/utils/sm90/bwd_tile_scheduler.py
index 4df95eed2..5ec0eacc1 100644
--- a/python/cudnn/deepseek_sparse_attention/utils/sm90/bwd_tile_scheduler.py
+++ b/python/cudnn/deepseek_sparse_attention/utils/sm90/bwd_tile_scheduler.py
@@ -1,4 +1,5 @@
# Copyright (c) 2025, Tri Dao.
+# SPDX-License-Identifier: MIT
"""SM90 backward tile schedulers shared by DSA kernels."""
from typing import Optional, Tuple
diff --git a/python/cudnn/deepseek_sparse_attention/utils/sm90/mma.py b/python/cudnn/deepseek_sparse_attention/utils/sm90/mma.py
index 022508afb..7193f30e1 100644
--- a/python/cudnn/deepseek_sparse_attention/utils/sm90/mma.py
+++ b/python/cudnn/deepseek_sparse_attention/utils/sm90/mma.py
@@ -1,5 +1,6 @@
# Copyright (c) 2025, Tri Dao.
# Copyright (c) 2026, Jerry Chen
+# SPDX-License-Identifier: MIT
"""SM90 WGMMA and shared-memory layout helpers."""
from typing import Type, Union, Optional
diff --git a/python/cudnn/deepseek_sparse_attention/utils/sm90/primitives.py b/python/cudnn/deepseek_sparse_attention/utils/sm90/primitives.py
index a642dfb4f..e1908ee17 100644
--- a/python/cudnn/deepseek_sparse_attention/utils/sm90/primitives.py
+++ b/python/cudnn/deepseek_sparse_attention/utils/sm90/primitives.py
@@ -1,5 +1,6 @@
# Copyright (c) 2025, Tri Dao.
# Copyright (c) 2026, Jerry Chen
+# SPDX-License-Identifier: MIT
"""SM90 CuTe DSL primitives shared by DSA kernels."""
import math
diff --git a/python/cudnn/deepseek_sparse_attention/utils/tensor_conversion.py b/python/cudnn/deepseek_sparse_attention/utils/tensor_conversion.py
index cbde9a218..5cd916968 100644
--- a/python/cudnn/deepseek_sparse_attention/utils/tensor_conversion.py
+++ b/python/cudnn/deepseek_sparse_attention/utils/tensor_conversion.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Common CuTe tensor conversion helpers."""
from cutlass.cute.runtime import from_dlpack
diff --git a/python/cudnn/discrete_grouped_gemm/__init__.py b/python/cudnn/discrete_grouped_gemm/__init__.py
index db09418bf..e5ce89af4 100644
--- a/python/cudnn/discrete_grouped_gemm/__init__.py
+++ b/python/cudnn/discrete_grouped_gemm/__init__.py
@@ -1,5 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
"""
Discrete-weight Grouped GEMM GLU Kernel Module
diff --git a/python/cudnn/discrete_grouped_gemm/discrete_grouped_gemm_dswiglu/__init__.py b/python/cudnn/discrete_grouped_gemm/discrete_grouped_gemm_dswiglu/__init__.py
index e0355406a..3b52720f3 100644
--- a/python/cudnn/discrete_grouped_gemm/discrete_grouped_gemm_dswiglu/__init__.py
+++ b/python/cudnn/discrete_grouped_gemm/discrete_grouped_gemm_dswiglu/__init__.py
@@ -1,5 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
from .api import (
DiscreteGroupedGemmDswigluSm100,
diff --git a/python/cudnn/discrete_grouped_gemm/discrete_grouped_gemm_dswiglu/api.py b/python/cudnn/discrete_grouped_gemm/discrete_grouped_gemm_dswiglu/api.py
index d04fd85dc..c87ba9870 100644
--- a/python/cudnn/discrete_grouped_gemm/discrete_grouped_gemm_dswiglu/api.py
+++ b/python/cudnn/discrete_grouped_gemm/discrete_grouped_gemm_dswiglu/api.py
@@ -1,31 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-#
-# 1. Redistributions of source code must retain the above copyright notice, this
-# list of conditions and the following disclaimer.
-#
-# 2. Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-#
-# 3. Neither the name of the copyright holder nor the names of its
-# contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
"""
API for Discrete-weight Grouped GEMM dGLU Backward Kernel (SM100+)
diff --git a/python/cudnn/discrete_grouped_gemm/discrete_grouped_gemm_dswiglu/discrete_B_blockscaled_grouped_gemm_dglu_dbias.py b/python/cudnn/discrete_grouped_gemm/discrete_grouped_gemm_dswiglu/discrete_B_blockscaled_grouped_gemm_dglu_dbias.py
index 0f9d68853..5365241fe 100644
--- a/python/cudnn/discrete_grouped_gemm/discrete_grouped_gemm_dswiglu/discrete_B_blockscaled_grouped_gemm_dglu_dbias.py
+++ b/python/cudnn/discrete_grouped_gemm/discrete_grouped_gemm_dswiglu/discrete_B_blockscaled_grouped_gemm_dglu_dbias.py
@@ -1,31 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
-
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-
-# 1. Redistributions of source code must retain the above copyright notice, this
-# list of conditions and the following disclaimer.
-
-# 2. Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-
-# 3. Neither the name of the copyright holder nor the names of its
-# contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
-
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
"""
Discrete-weight block-scaled grouped GEMM kernel with dGLU (backward SwiGLU/GeGLU),
optional FP8 quantization fusion, and optional dBias (bias gradient) fusion.
diff --git a/python/cudnn/discrete_grouped_gemm/discrete_grouped_gemm_swiglu/__init__.py b/python/cudnn/discrete_grouped_gemm/discrete_grouped_gemm_swiglu/__init__.py
index dafdfc1c2..b9e1c2d35 100644
--- a/python/cudnn/discrete_grouped_gemm/discrete_grouped_gemm_swiglu/__init__.py
+++ b/python/cudnn/discrete_grouped_gemm/discrete_grouped_gemm_swiglu/__init__.py
@@ -1,5 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
from .api import (
DiscreteGroupedGemmSwigluSm100,
diff --git a/python/cudnn/discrete_grouped_gemm/discrete_grouped_gemm_swiglu/api.py b/python/cudnn/discrete_grouped_gemm/discrete_grouped_gemm_swiglu/api.py
index 86f39937b..7aa1f8bd0 100644
--- a/python/cudnn/discrete_grouped_gemm/discrete_grouped_gemm_swiglu/api.py
+++ b/python/cudnn/discrete_grouped_gemm/discrete_grouped_gemm_swiglu/api.py
@@ -1,31 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-#
-# 1. Redistributions of source code must retain the above copyright notice, this
-# list of conditions and the following disclaimer.
-#
-# 2. Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-#
-# 3. Neither the name of the copyright holder nor the names of its
-# contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
"""
API for Discrete-weight Grouped GEMM GLU Forward Kernel (SM100+)
diff --git a/python/cudnn/discrete_grouped_gemm/discrete_grouped_gemm_swiglu/discrete_B_blockscaled_grouped_gemm_glu_bias.py b/python/cudnn/discrete_grouped_gemm/discrete_grouped_gemm_swiglu/discrete_B_blockscaled_grouped_gemm_glu_bias.py
index 155ce1aa2..8a4b049dd 100644
--- a/python/cudnn/discrete_grouped_gemm/discrete_grouped_gemm_swiglu/discrete_B_blockscaled_grouped_gemm_glu_bias.py
+++ b/python/cudnn/discrete_grouped_gemm/discrete_grouped_gemm_swiglu/discrete_B_blockscaled_grouped_gemm_glu_bias.py
@@ -1,31 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
-
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-
-# 1. Redistributions of source code must retain the above copyright notice, this
-# list of conditions and the following disclaimer.
-
-# 2. Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-
-# 3. Neither the name of the copyright holder nor the names of its
-# contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
-
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
"""
Discrete-weight block-scaled grouped GEMM kernel with GLU (SwiGLU/GeGLU) and optional bias fusion.
diff --git a/python/cudnn/discrete_grouped_gemm/discrete_kernel_utils.py b/python/cudnn/discrete_grouped_gemm/discrete_kernel_utils.py
index aaec0464e..10111cdef 100644
--- a/python/cudnn/discrete_grouped_gemm/discrete_kernel_utils.py
+++ b/python/cudnn/discrete_grouped_gemm/discrete_kernel_utils.py
@@ -1,31 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
-
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-
-# 1. Redistributions of source code must retain the above copyright notice, this
-# list of conditions and the following disclaimer.
-
-# 2. Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-
-# 3. Neither the name of the copyright holder nor the names of its
-# contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
-
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
"""
Shared utilities for discrete-weight block-scaled grouped GEMM kernels.
diff --git a/python/cudnn/discrete_grouped_gemm/moe_persistent_scheduler.py b/python/cudnn/discrete_grouped_gemm/moe_persistent_scheduler.py
index a966d0be9..2bb1b3343 100644
--- a/python/cudnn/discrete_grouped_gemm/moe_persistent_scheduler.py
+++ b/python/cudnn/discrete_grouped_gemm/moe_persistent_scheduler.py
@@ -1,5 +1,5 @@
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-License-Identifier: Apache-2.0
"""
MoE Persistent Tile Scheduler
diff --git a/python/cudnn/discrete_grouped_gemm/moe_sched_extension.py b/python/cudnn/discrete_grouped_gemm/moe_sched_extension.py
index 7a43ea19b..213603695 100644
--- a/python/cudnn/discrete_grouped_gemm/moe_sched_extension.py
+++ b/python/cudnn/discrete_grouped_gemm/moe_sched_extension.py
@@ -1,5 +1,5 @@
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-License-Identifier: Apache-2.0
"""
MoE Scheduler Extension for Discrete-Weight Block-Scaled Grouped GEMM.
diff --git a/python/cudnn/discrete_grouped_gemm/moe_utils.py b/python/cudnn/discrete_grouped_gemm/moe_utils.py
index bcc08d473..ffb26f45f 100644
--- a/python/cudnn/discrete_grouped_gemm/moe_utils.py
+++ b/python/cudnn/discrete_grouped_gemm/moe_utils.py
@@ -1,5 +1,5 @@
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-License-Identifier: Apache-2.0
"""
Online TMA Descriptor Construction Utilities.
diff --git a/python/cudnn/engines/__init__.py b/python/cudnn/engines/__init__.py
index 253bae4b2..0516104c5 100644
--- a/python/cudnn/engines/__init__.py
+++ b/python/cudnn/engines/__init__.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Execution backends for pygraph.
Pluggable execution backends in one flat engine-id space with the cuDNN backend.
diff --git a/python/cudnn/engines/base.py b/python/cudnn/engines/base.py
index bed12beff..39b33c897 100644
--- a/python/cudnn/engines/base.py
+++ b/python/cudnn/engines/base.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Backend (engine) contract for the Python graph: plan -> compile -> execute.
A backend is one of the interchangeable implementations the Router dispatches
diff --git a/python/cudnn/engines/engine_ids.py b/python/cudnn/engines/engine_ids.py
index 2920fc1be..c83f4d767 100644
--- a/python/cudnn/engines/engine_ids.py
+++ b/python/cudnn/engines/engine_ids.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Engine-id namespace shared by cuDNN and Python backends.
Execution engines live in one flat integer id space, exactly like cuDNN's own
diff --git a/python/cudnn/engines/reference_matmul_engine.py b/python/cudnn/engines/reference_matmul_engine.py
index daff71ca9..7239f9497 100644
--- a/python/cudnn/engines/reference_matmul_engine.py
+++ b/python/cudnn/engines/reference_matmul_engine.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Pure-PyTorch reference backend — a correctness baseline with no GPU/JIT deps.
This backend exists so the pygraph + BaseEngine + Router contract can be
diff --git a/python/cudnn/engines/router.py b/python/cudnn/engines/router.py
index f3b20970e..8857973af 100644
--- a/python/cudnn/engines/router.py
+++ b/python/cudnn/engines/router.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Router: builds the ranked execution-plan list at plan-creation time.
Implements the dispatch stage of the Python API unification proposal:
diff --git a/python/cudnn/experimental/__init__.py b/python/cudnn/experimental/__init__.py
index 6b66a0087..8dda9bda7 100644
--- a/python/cudnn/experimental/__init__.py
+++ b/python/cudnn/experimental/__init__.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""cuDNN experimental APIs."""
from . import ops
diff --git a/python/cudnn/experimental/ops/__init__.py b/python/cudnn/experimental/ops/__init__.py
index 11f32769e..3e71597c3 100644
--- a/python/cudnn/experimental/ops/__init__.py
+++ b/python/cudnn/experimental/ops/__init__.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
from .sdpa import scaled_dot_product_attention
from .moe_grouped_matmul import moe_grouped_matmul
diff --git a/python/cudnn/experimental/ops/moe_grouped_matmul.py b/python/cudnn/experimental/ops/moe_grouped_matmul.py
index 004dfc3d6..87aa9f9fb 100644
--- a/python/cudnn/experimental/ops/moe_grouped_matmul.py
+++ b/python/cudnn/experimental/ops/moe_grouped_matmul.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
PyTorch custom operator wrapping cuDNN's MoE Grouped Matmul.
diff --git a/python/cudnn/experimental/ops/sdpa.py b/python/cudnn/experimental/ops/sdpa.py
index fa2e66585..2b34a64c0 100644
--- a/python/cudnn/experimental/ops/sdpa.py
+++ b/python/cudnn/experimental/ops/sdpa.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
PyTorch custom operator wrapping cuDNN's Scaled Dot-Product Attention (SDPA).
diff --git a/python/cudnn/gemm_amax/__init__.py b/python/cudnn/gemm_amax/__init__.py
index b65cf491e..f946e5267 100644
--- a/python/cudnn/gemm_amax/__init__.py
+++ b/python/cudnn/gemm_amax/__init__.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
from .api import (
GemmAmaxSm100,
gemm_amax_wrapper_sm100,
diff --git a/python/cudnn/gemm_amax/api.py b/python/cudnn/gemm_amax/api.py
index 62fc475bb..c6359e8c5 100644
--- a/python/cudnn/gemm_amax/api.py
+++ b/python/cudnn/gemm_amax/api.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
from .dense_blockscaled_gemm_persistent_amax import (
Sm100BlockScaledPersistentDenseGemmKernel,
)
diff --git a/python/cudnn/gemm_amax/dense_blockscaled_gemm_persistent_amax.py b/python/cudnn/gemm_amax/dense_blockscaled_gemm_persistent_amax.py
index ea6abadaf..6bf012ea7 100644
--- a/python/cudnn/gemm_amax/dense_blockscaled_gemm_persistent_amax.py
+++ b/python/cudnn/gemm_amax/dense_blockscaled_gemm_persistent_amax.py
@@ -1,31 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
-
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-
-# 1. Redistributions of source code must retain the above copyright notice, this
-# list of conditions and the following disclaimer.
-
-# 2. Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-
-# 3. Neither the name of the copyright holder nor the names of its
-# contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
-
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
from typing import Type, Tuple, Union
import cuda.bindings.driver as cuda
diff --git a/python/cudnn/gemm_dsrelu/__init__.py b/python/cudnn/gemm_dsrelu/__init__.py
index ade25458b..dab1e63a6 100644
--- a/python/cudnn/gemm_dsrelu/__init__.py
+++ b/python/cudnn/gemm_dsrelu/__init__.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
from .api import (
GemmDsreluSm100,
gemm_dsrelu_wrapper_sm100,
diff --git a/python/cudnn/gemm_dsrelu/api.py b/python/cudnn/gemm_dsrelu/api.py
index fb02fa027..eb8dbd01a 100644
--- a/python/cudnn/gemm_dsrelu/api.py
+++ b/python/cudnn/gemm_dsrelu/api.py
@@ -1,5 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
from __future__ import annotations
diff --git a/python/cudnn/gemm_dsrelu/dense_blockscaled_gemm_persistent_dsrelu_quant.py b/python/cudnn/gemm_dsrelu/dense_blockscaled_gemm_persistent_dsrelu_quant.py
index 66f7d6ddb..8f9faa567 100644
--- a/python/cudnn/gemm_dsrelu/dense_blockscaled_gemm_persistent_dsrelu_quant.py
+++ b/python/cudnn/gemm_dsrelu/dense_blockscaled_gemm_persistent_dsrelu_quant.py
@@ -1,31 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: BSD-3-Clause
-
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-
-# 1. Redistributions of source code must retain the above copyright notice, this
-# list of conditions and the following disclaimer.
-
-# 2. Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-
-# 3. Neither the name of the copyright holder nor the names of its
-# contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
-
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
from typing import Type, Tuple, Union, Optional
import cuda.bindings.driver as cuda
diff --git a/python/cudnn/gemm_proj_rope_mxfp8/__init__.py b/python/cudnn/gemm_proj_rope_mxfp8/__init__.py
index c651a98ac..082fb249f 100644
--- a/python/cudnn/gemm_proj_rope_mxfp8/__init__.py
+++ b/python/cudnn/gemm_proj_rope_mxfp8/__init__.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
from .api import (
GemmProjRopeMxfp8Sm100,
gemm_proj_rope_mxfp8_wrapper_sm100,
diff --git a/python/cudnn/gemm_proj_rope_mxfp8/api.py b/python/cudnn/gemm_proj_rope_mxfp8/api.py
index fafa4d89c..cdec3bfcf 100644
--- a/python/cudnn/gemm_proj_rope_mxfp8/api.py
+++ b/python/cudnn/gemm_proj_rope_mxfp8/api.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
from .gemm_proj_rope_mxfp8 import (
gemm_proj_rope_mxfp8_host,
HEAD_DIM,
diff --git a/python/cudnn/gemm_proj_rope_mxfp8/gemm_proj_rope_mxfp8.py b/python/cudnn/gemm_proj_rope_mxfp8/gemm_proj_rope_mxfp8.py
index 189d57786..c2288acf7 100644
--- a/python/cudnn/gemm_proj_rope_mxfp8/gemm_proj_rope_mxfp8.py
+++ b/python/cudnn/gemm_proj_rope_mxfp8/gemm_proj_rope_mxfp8.py
@@ -1,31 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: BSD-3-Clause
-
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-
-# 1. Redistributions of source code must retain the above copyright notice, this
-# list of conditions and the following disclaimer.
-
-# 2. Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-
-# 3. Neither the name of the copyright holder nor the names of its
-# contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
-
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
"""Fused projection GEMM + per-head YARN RoPE + dual-direction MXFP8 quantize (Blackwell / SM100)."""
import cuda.bindings.driver as cuda
diff --git a/python/cudnn/gemm_srelu/__init__.py b/python/cudnn/gemm_srelu/__init__.py
index 29324f369..9ca3e844c 100644
--- a/python/cudnn/gemm_srelu/__init__.py
+++ b/python/cudnn/gemm_srelu/__init__.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
from .api import (
GemmSreluSm100,
gemm_srelu_wrapper_sm100,
diff --git a/python/cudnn/gemm_srelu/api.py b/python/cudnn/gemm_srelu/api.py
index 3bf21f95f..b7c41c5dd 100644
--- a/python/cudnn/gemm_srelu/api.py
+++ b/python/cudnn/gemm_srelu/api.py
@@ -1,5 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
from __future__ import annotations
diff --git a/python/cudnn/gemm_srelu/dense_blockscaled_gemm_persistent_srelu_quant.py b/python/cudnn/gemm_srelu/dense_blockscaled_gemm_persistent_srelu_quant.py
index 1b338ba70..f841b16c4 100644
--- a/python/cudnn/gemm_srelu/dense_blockscaled_gemm_persistent_srelu_quant.py
+++ b/python/cudnn/gemm_srelu/dense_blockscaled_gemm_persistent_srelu_quant.py
@@ -1,31 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: BSD-3-Clause
-
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-
-# 1. Redistributions of source code must retain the above copyright notice, this
-# list of conditions and the following disclaimer.
-
-# 2. Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-
-# 3. Neither the name of the copyright holder nor the names of its
-# contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
-
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
from typing import Type, Tuple, Union, Optional
import cuda.bindings.driver as cuda
diff --git a/python/cudnn/gemm_swiglu/__init__.py b/python/cudnn/gemm_swiglu/__init__.py
index cf2170c32..bbb753b25 100644
--- a/python/cudnn/gemm_swiglu/__init__.py
+++ b/python/cudnn/gemm_swiglu/__init__.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
from .api import (
GemmSwigluSm100,
gemm_swiglu_wrapper_sm100,
diff --git a/python/cudnn/gemm_swiglu/api.py b/python/cudnn/gemm_swiglu/api.py
index 2daeaa740..afabe0ca0 100644
--- a/python/cudnn/gemm_swiglu/api.py
+++ b/python/cudnn/gemm_swiglu/api.py
@@ -1,32 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
-
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-
-# 1. Redistributions of source code must retain the above copyright notice, this
-# list of conditions and the following disclaimer.
-
-# 2. Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-
-# 3. Neither the name of the copyright holder nor the names of its
-# contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
-
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
from .dense_gemm_persistent_swiglu import (
PersistentDenseGemmKernel,
)
diff --git a/python/cudnn/gemm_swiglu/dense_blockscaled_gemm_persistent_swiglu_interleaved_quant.py b/python/cudnn/gemm_swiglu/dense_blockscaled_gemm_persistent_swiglu_interleaved_quant.py
index 71d225b4f..f09c6d4d9 100644
--- a/python/cudnn/gemm_swiglu/dense_blockscaled_gemm_persistent_swiglu_interleaved_quant.py
+++ b/python/cudnn/gemm_swiglu/dense_blockscaled_gemm_persistent_swiglu_interleaved_quant.py
@@ -1,31 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
-
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-
-# 1. Redistributions of source code must retain the above copyright notice, this
-# list of conditions and the following disclaimer.
-
-# 2. Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-
-# 3. Neither the name of the copyright holder nor the names of its
-# contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
-
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
from typing import Type, Tuple, Union, Optional
import cuda.bindings.driver as cuda
diff --git a/python/cudnn/gemm_swiglu/dense_gemm_persistent_swiglu.py b/python/cudnn/gemm_swiglu/dense_gemm_persistent_swiglu.py
index 28f6aff86..00ed480b4 100644
--- a/python/cudnn/gemm_swiglu/dense_gemm_persistent_swiglu.py
+++ b/python/cudnn/gemm_swiglu/dense_gemm_persistent_swiglu.py
@@ -1,31 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
-
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-
-# 1. Redistributions of source code must retain the above copyright notice, this
-# list of conditions and the following disclaimer.
-
-# 2. Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-
-# 3. Neither the name of the copyright holder nor the names of its
-# contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
-
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
from typing import Optional, Type, Tuple, Union
import cuda.bindings.driver as cuda
diff --git a/python/cudnn/graph.py b/python/cudnn/graph.py
index e2752acb3..bf5d8b430 100644
--- a/python/cudnn/graph.py
+++ b/python/cudnn/graph.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import cudnn
from contextlib import contextmanager
from typing import Optional, List, Union, Callable
diff --git a/python/cudnn/graph_types.py b/python/cudnn/graph_types.py
index f08806791..c63ee10d1 100644
--- a/python/cudnn/graph_types.py
+++ b/python/cudnn/graph_types.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Pure Python data types for cuDNN Frontend graph representation.
This module provides Python dataclasses for tensor attributes and node types,
diff --git a/python/cudnn/grouped_gemm/__init__.py b/python/cudnn/grouped_gemm/__init__.py
index 818a1ab99..621ddbf5a 100644
--- a/python/cudnn/grouped_gemm/__init__.py
+++ b/python/cudnn/grouped_gemm/__init__.py
@@ -1,5 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
from .grouped_gemm_swiglu.api import (
GroupedGemmSwigluSm100,
diff --git a/python/cudnn/grouped_gemm/grouped_gemm_dglu/__init__.py b/python/cudnn/grouped_gemm/grouped_gemm_dglu/__init__.py
index 748246694..a21a85e06 100644
--- a/python/cudnn/grouped_gemm/grouped_gemm_dglu/__init__.py
+++ b/python/cudnn/grouped_gemm/grouped_gemm_dglu/__init__.py
@@ -1,5 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
from .api import (
GroupedGemmDgluSm100,
diff --git a/python/cudnn/grouped_gemm/grouped_gemm_dglu/api.py b/python/cudnn/grouped_gemm/grouped_gemm_dglu/api.py
index 1d026812d..1cdb52b52 100644
--- a/python/cudnn/grouped_gemm/grouped_gemm_dglu/api.py
+++ b/python/cudnn/grouped_gemm/grouped_gemm_dglu/api.py
@@ -1,31 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-#
-# 1. Redistributions of source code must retain the above copyright notice, this
-# list of conditions and the following disclaimer.
-#
-# 2. Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-#
-# 3. Neither the name of the copyright holder nor the names of its
-# contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
"""
Unified API for Grouped GEMM dGLU Backward Kernel (SM100+)
diff --git a/python/cudnn/grouped_gemm/grouped_gemm_dglu/moe_blockscaled_grouped_gemm_dglu_dbias.py b/python/cudnn/grouped_gemm/grouped_gemm_dglu/moe_blockscaled_grouped_gemm_dglu_dbias.py
index e84258a7e..becd46baf 100644
--- a/python/cudnn/grouped_gemm/grouped_gemm_dglu/moe_blockscaled_grouped_gemm_dglu_dbias.py
+++ b/python/cudnn/grouped_gemm/grouped_gemm_dglu/moe_blockscaled_grouped_gemm_dglu_dbias.py
@@ -1,31 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
-
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-
-# 1. Redistributions of source code must retain the above copyright notice, this
-# list of conditions and the following disclaimer.
-
-# 2. Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-
-# 3. Neither the name of the copyright holder nor the names of its
-# contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
-
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
"""
MoE Block-Scaled Grouped GEMM Kernel with dGLU (dSwiGLU/dGeGLU) Backward Fusion.
diff --git a/python/cudnn/grouped_gemm/grouped_gemm_dsrelu/__init__.py b/python/cudnn/grouped_gemm/grouped_gemm_dsrelu/__init__.py
index e15137794..42652b1f2 100644
--- a/python/cudnn/grouped_gemm/grouped_gemm_dsrelu/__init__.py
+++ b/python/cudnn/grouped_gemm/grouped_gemm_dsrelu/__init__.py
@@ -1,5 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
from .api import (
GroupedGemmDsreluSm100,
diff --git a/python/cudnn/grouped_gemm/grouped_gemm_dsrelu/api.py b/python/cudnn/grouped_gemm/grouped_gemm_dsrelu/api.py
index 2d65a12ef..96fac1727 100644
--- a/python/cudnn/grouped_gemm/grouped_gemm_dsrelu/api.py
+++ b/python/cudnn/grouped_gemm/grouped_gemm_dsrelu/api.py
@@ -1,31 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-#
-# 1. Redistributions of source code must retain the above copyright notice, this
-# list of conditions and the following disclaimer.
-#
-# 2. Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-#
-# 3. Neither the name of the copyright holder nor the names of its
-# contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
"""
Unified API for Grouped GEMM dSReLU Backward Kernel (SM100+)
diff --git a/python/cudnn/grouped_gemm/grouped_gemm_dsrelu/moe_blockscaled_grouped_gemm_dsrelu_quant.py b/python/cudnn/grouped_gemm/grouped_gemm_dsrelu/moe_blockscaled_grouped_gemm_dsrelu_quant.py
index 4d92076a4..a34335e05 100644
--- a/python/cudnn/grouped_gemm/grouped_gemm_dsrelu/moe_blockscaled_grouped_gemm_dsrelu_quant.py
+++ b/python/cudnn/grouped_gemm/grouped_gemm_dsrelu/moe_blockscaled_grouped_gemm_dsrelu_quant.py
@@ -1,5 +1,5 @@
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-License-Identifier: Apache-2.0
"""
MoE Block-Scaled Grouped GEMM Backward Kernel with DSRELU Support.
diff --git a/python/cudnn/grouped_gemm/grouped_gemm_dswiglu/__init__.py b/python/cudnn/grouped_gemm/grouped_gemm_dswiglu/__init__.py
index f0261951a..1d58832d3 100644
--- a/python/cudnn/grouped_gemm/grouped_gemm_dswiglu/__init__.py
+++ b/python/cudnn/grouped_gemm/grouped_gemm_dswiglu/__init__.py
@@ -1,5 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
from .api import (
GroupedGemmDswigluSm100,
diff --git a/python/cudnn/grouped_gemm/grouped_gemm_dswiglu/api.py b/python/cudnn/grouped_gemm/grouped_gemm_dswiglu/api.py
index f6b518223..98ebd34fe 100644
--- a/python/cudnn/grouped_gemm/grouped_gemm_dswiglu/api.py
+++ b/python/cudnn/grouped_gemm/grouped_gemm_dswiglu/api.py
@@ -1,31 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-#
-# 1. Redistributions of source code must retain the above copyright notice, this
-# list of conditions and the following disclaimer.
-#
-# 2. Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-#
-# 3. Neither the name of the copyright holder nor the names of its
-# contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
"""
API for Grouped GEMM dSwiGLU Backward Kernel (SM100+)
diff --git a/python/cudnn/grouped_gemm/grouped_gemm_dswiglu/grouped_gemm_dswiglu_quant.py b/python/cudnn/grouped_gemm/grouped_gemm_dswiglu/grouped_gemm_dswiglu_quant.py
index 7ab4ad6e0..7190f3496 100644
--- a/python/cudnn/grouped_gemm/grouped_gemm_dswiglu/grouped_gemm_dswiglu_quant.py
+++ b/python/cudnn/grouped_gemm/grouped_gemm_dswiglu/grouped_gemm_dswiglu_quant.py
@@ -1,31 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
-
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-
-# 1. Redistributions of source code must retain the above copyright notice, this
-# list of conditions and the following disclaimer.
-
-# 2. Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-
-# 3. Neither the name of the copyright holder nor the names of its
-# contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
-
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
from typing import Type, Tuple, Union, Optional
import cuda.bindings.driver as cuda
diff --git a/python/cudnn/grouped_gemm/grouped_gemm_glu/__init__.py b/python/cudnn/grouped_gemm/grouped_gemm_glu/__init__.py
index 177db7f07..e27d2024c 100644
--- a/python/cudnn/grouped_gemm/grouped_gemm_glu/__init__.py
+++ b/python/cudnn/grouped_gemm/grouped_gemm_glu/__init__.py
@@ -1,5 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
from .api import (
GroupedGemmGluSm100,
diff --git a/python/cudnn/grouped_gemm/grouped_gemm_glu/api.py b/python/cudnn/grouped_gemm/grouped_gemm_glu/api.py
index b814b046f..45997bf2f 100644
--- a/python/cudnn/grouped_gemm/grouped_gemm_glu/api.py
+++ b/python/cudnn/grouped_gemm/grouped_gemm_glu/api.py
@@ -1,31 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-#
-# 1. Redistributions of source code must retain the above copyright notice, this
-# list of conditions and the following disclaimer.
-#
-# 2. Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-#
-# 3. Neither the name of the copyright holder nor the names of its
-# contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
"""
Unified API for Grouped GEMM GLU Forward Kernel (SM100+)
diff --git a/python/cudnn/grouped_gemm/grouped_gemm_glu/moe_blockscaled_grouped_gemm_glu_bias.py b/python/cudnn/grouped_gemm/grouped_gemm_glu/moe_blockscaled_grouped_gemm_glu_bias.py
index d0c89bc2d..99b9290d1 100644
--- a/python/cudnn/grouped_gemm/grouped_gemm_glu/moe_blockscaled_grouped_gemm_glu_bias.py
+++ b/python/cudnn/grouped_gemm/grouped_gemm_glu/moe_blockscaled_grouped_gemm_glu_bias.py
@@ -1,31 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
-
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-
-# 1. Redistributions of source code must retain the above copyright notice, this
-# list of conditions and the following disclaimer.
-
-# 2. Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-
-# 3. Neither the name of the copyright holder nor the names of its
-# contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
-
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
"""
MoE Block-Scaled Grouped GEMM Kernel with GLU (SwiGLU/GeGLU) Fusion.
diff --git a/python/cudnn/grouped_gemm/grouped_gemm_glu_hadamard/__init__.py b/python/cudnn/grouped_gemm/grouped_gemm_glu_hadamard/__init__.py
index 2ef06aa02..798c1fa25 100644
--- a/python/cudnn/grouped_gemm/grouped_gemm_glu_hadamard/__init__.py
+++ b/python/cudnn/grouped_gemm/grouped_gemm_glu_hadamard/__init__.py
@@ -1,5 +1,5 @@
-# Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
from .api import (
GroupedGemmGluHadamardSm100,
diff --git a/python/cudnn/grouped_gemm/grouped_gemm_glu_hadamard/api.py b/python/cudnn/grouped_gemm/grouped_gemm_glu_hadamard/api.py
index a72b6fba5..e2a783927 100644
--- a/python/cudnn/grouped_gemm/grouped_gemm_glu_hadamard/api.py
+++ b/python/cudnn/grouped_gemm/grouped_gemm_glu_hadamard/api.py
@@ -1,5 +1,5 @@
-# Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
"""FE API for grouped GEMM GLU + Hadamard forward fusion."""
diff --git a/python/cudnn/grouped_gemm/grouped_gemm_glu_hadamard/hadamard_utils.py b/python/cudnn/grouped_gemm/grouped_gemm_glu_hadamard/hadamard_utils.py
index ec55574bc..c3234f568 100644
--- a/python/cudnn/grouped_gemm/grouped_gemm_glu_hadamard/hadamard_utils.py
+++ b/python/cudnn/grouped_gemm/grouped_gemm_glu_hadamard/hadamard_utils.py
@@ -1,5 +1,5 @@
-# Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
"""Local Hadamard helpers for the grouped GEMM GLU hadamard kernel."""
diff --git a/python/cudnn/grouped_gemm/grouped_gemm_glu_hadamard/moe_blockscaled_grouped_gemm_glu_hadamard.py b/python/cudnn/grouped_gemm/grouped_gemm_glu_hadamard/moe_blockscaled_grouped_gemm_glu_hadamard.py
index 8908992d9..ddab650f7 100644
--- a/python/cudnn/grouped_gemm/grouped_gemm_glu_hadamard/moe_blockscaled_grouped_gemm_glu_hadamard.py
+++ b/python/cudnn/grouped_gemm/grouped_gemm_glu_hadamard/moe_blockscaled_grouped_gemm_glu_hadamard.py
@@ -1,31 +1,5 @@
-# Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: BSD-3-Clause
-
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-
-# 1. Redistributions of source code must retain the above copyright notice, this
-# list of conditions and the following disclaimer.
-
-# 2. Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-
-# 3. Neither the name of the copyright holder nor the names of its
-# contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
-
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
"""
MoE Block-Scaled Grouped GEMM Kernel with GLU (SwiGLU/GeGLU) + Hadamard Transform Fusion.
diff --git a/python/cudnn/grouped_gemm/grouped_gemm_quant/__init__.py b/python/cudnn/grouped_gemm/grouped_gemm_quant/__init__.py
index 9f88a8d00..e2532449c 100644
--- a/python/cudnn/grouped_gemm/grouped_gemm_quant/__init__.py
+++ b/python/cudnn/grouped_gemm/grouped_gemm_quant/__init__.py
@@ -1,5 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
"""
Grouped GEMM Quant Kernel Module
diff --git a/python/cudnn/grouped_gemm/grouped_gemm_quant/api.py b/python/cudnn/grouped_gemm/grouped_gemm_quant/api.py
index eaf7d7d98..0c4b1ce46 100644
--- a/python/cudnn/grouped_gemm/grouped_gemm_quant/api.py
+++ b/python/cudnn/grouped_gemm/grouped_gemm_quant/api.py
@@ -1,31 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: MIT
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-#
-# 1. Redistributions of source code must retain the above copyright notice, this
-# list of conditions and the following disclaimer.
-#
-# 2. Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-#
-# 3. Neither the name of the copyright holder nor the names of its
-# contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
"""
Unified API for Grouped GEMM Quant Kernel (SM100+)
diff --git a/python/cudnn/grouped_gemm/grouped_gemm_srelu/__init__.py b/python/cudnn/grouped_gemm/grouped_gemm_srelu/__init__.py
index 70b2bfe7d..bfeb78e48 100644
--- a/python/cudnn/grouped_gemm/grouped_gemm_srelu/__init__.py
+++ b/python/cudnn/grouped_gemm/grouped_gemm_srelu/__init__.py
@@ -1,5 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
"""
Grouped GEMM SReLU Kernel Module
diff --git a/python/cudnn/grouped_gemm/grouped_gemm_srelu/api.py b/python/cudnn/grouped_gemm/grouped_gemm_srelu/api.py
index 2ff670e08..c47cefeb8 100644
--- a/python/cudnn/grouped_gemm/grouped_gemm_srelu/api.py
+++ b/python/cudnn/grouped_gemm/grouped_gemm_srelu/api.py
@@ -1,31 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-#
-# 1. Redistributions of source code must retain the above copyright notice, this
-# list of conditions and the following disclaimer.
-#
-# 2. Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-#
-# 3. Neither the name of the copyright holder nor the names of its
-# contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
"""
Unified API for Grouped GEMM SReLU Kernel (SM100+)
diff --git a/python/cudnn/grouped_gemm/grouped_gemm_srelu/moe_blockscaled_grouped_gemm_srelu_quant.py b/python/cudnn/grouped_gemm/grouped_gemm_srelu/moe_blockscaled_grouped_gemm_srelu_quant.py
index 6592ca1eb..c0956affc 100644
--- a/python/cudnn/grouped_gemm/grouped_gemm_srelu/moe_blockscaled_grouped_gemm_srelu_quant.py
+++ b/python/cudnn/grouped_gemm/grouped_gemm_srelu/moe_blockscaled_grouped_gemm_srelu_quant.py
@@ -1,5 +1,5 @@
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-License-Identifier: Apache-2.0
"""
MoE Block-Scaled Grouped GEMM Kernel with Quantization and SReLU Support.
diff --git a/python/cudnn/grouped_gemm/grouped_gemm_swiglu/__init__.py b/python/cudnn/grouped_gemm/grouped_gemm_swiglu/__init__.py
index 6bcd935f2..1fb85d035 100644
--- a/python/cudnn/grouped_gemm/grouped_gemm_swiglu/__init__.py
+++ b/python/cudnn/grouped_gemm/grouped_gemm_swiglu/__init__.py
@@ -1,5 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
"""
Grouped GEMM SwiGLU Kernel Module
diff --git a/python/cudnn/grouped_gemm/grouped_gemm_swiglu/api.py b/python/cudnn/grouped_gemm/grouped_gemm_swiglu/api.py
index 7f876e1e2..540858938 100644
--- a/python/cudnn/grouped_gemm/grouped_gemm_swiglu/api.py
+++ b/python/cudnn/grouped_gemm/grouped_gemm_swiglu/api.py
@@ -1,31 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-#
-# 1. Redistributions of source code must retain the above copyright notice, this
-# list of conditions and the following disclaimer.
-#
-# 2. Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-#
-# 3. Neither the name of the copyright holder nor the names of its
-# contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
"""
API for Grouped GEMM SwiGLU Forward Kernel (SM100+)
diff --git a/python/cudnn/grouped_gemm/grouped_gemm_swiglu/grouped_gemm_swiglu_quant.py b/python/cudnn/grouped_gemm/grouped_gemm_swiglu/grouped_gemm_swiglu_quant.py
index aadfe126b..a343a5677 100644
--- a/python/cudnn/grouped_gemm/grouped_gemm_swiglu/grouped_gemm_swiglu_quant.py
+++ b/python/cudnn/grouped_gemm/grouped_gemm_swiglu/grouped_gemm_swiglu_quant.py
@@ -1,31 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
-
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-
-# 1. Redistributions of source code must retain the above copyright notice, this
-# list of conditions and the following disclaimer.
-
-# 2. Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-
-# 3. Neither the name of the copyright holder nor the names of its
-# contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
-
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
"""
Grouped GEMM SwiGLU Forward Kernel (SM100+)
diff --git a/python/cudnn/grouped_gemm/grouped_gemm_wgrad/__init__.py b/python/cudnn/grouped_gemm/grouped_gemm_wgrad/__init__.py
index 17a7ed70e..b68d8926d 100644
--- a/python/cudnn/grouped_gemm/grouped_gemm_wgrad/__init__.py
+++ b/python/cudnn/grouped_gemm/grouped_gemm_wgrad/__init__.py
@@ -1,5 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
from .api import (
GroupedGemmWgradSm100,
diff --git a/python/cudnn/grouped_gemm/grouped_gemm_wgrad/api.py b/python/cudnn/grouped_gemm/grouped_gemm_wgrad/api.py
index 29b3d7328..51ddb00f2 100644
--- a/python/cudnn/grouped_gemm/grouped_gemm_wgrad/api.py
+++ b/python/cudnn/grouped_gemm/grouped_gemm_wgrad/api.py
@@ -1,5 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
"""Unified FE API for grouped GEMM wgrad on SM100+."""
diff --git a/python/cudnn/grouped_gemm/grouped_gemm_wgrad/moe_blockscaled_grouped_gemm_wgrad.py b/python/cudnn/grouped_gemm/grouped_gemm_wgrad/moe_blockscaled_grouped_gemm_wgrad.py
index eecd0c805..e96ebddd2 100644
--- a/python/cudnn/grouped_gemm/grouped_gemm_wgrad/moe_blockscaled_grouped_gemm_wgrad.py
+++ b/python/cudnn/grouped_gemm/grouped_gemm_wgrad/moe_blockscaled_grouped_gemm_wgrad.py
@@ -1,5 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
"""
MoE Block-Scaled Grouped GEMM Kernel — Weight Gradient (2Dx2D).
diff --git a/python/cudnn/grouped_gemm/moe_kernel_helpers.py b/python/cudnn/grouped_gemm/moe_kernel_helpers.py
index 3cd5862e2..e5d8b2d83 100644
--- a/python/cudnn/grouped_gemm/moe_kernel_helpers.py
+++ b/python/cudnn/grouped_gemm/moe_kernel_helpers.py
@@ -1,31 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
-
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-
-# 1. Redistributions of source code must retain the above copyright notice, this
-# list of conditions and the following disclaimer.
-
-# 2. Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-
-# 3. Neither the name of the copyright holder nor the names of its
-# contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
-
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
"""
Shared utilities for discrete-weight block-scaled grouped GEMM kernels.
diff --git a/python/cudnn/grouped_gemm/moe_persistent_scheduler.py b/python/cudnn/grouped_gemm/moe_persistent_scheduler.py
index bab6d920d..331ed34a4 100644
--- a/python/cudnn/grouped_gemm/moe_persistent_scheduler.py
+++ b/python/cudnn/grouped_gemm/moe_persistent_scheduler.py
@@ -1,5 +1,5 @@
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-License-Identifier: Apache-2.0
"""
MoE Persistent Tile Scheduler
diff --git a/python/cudnn/grouped_gemm/moe_utils.py b/python/cudnn/grouped_gemm/moe_utils.py
index 0bb540e80..f9e7e143a 100644
--- a/python/cudnn/grouped_gemm/moe_utils.py
+++ b/python/cudnn/grouped_gemm/moe_utils.py
@@ -1,5 +1,5 @@
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-License-Identifier: Apache-2.0
"""
Online TMA Descriptor Construction Utilities.
diff --git a/python/cudnn/grouped_gemm/utils.py b/python/cudnn/grouped_gemm/utils.py
index cb60dc873..e1d01ed82 100644
--- a/python/cudnn/grouped_gemm/utils.py
+++ b/python/cudnn/grouped_gemm/utils.py
@@ -1,31 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-#
-# 1. Redistributions of source code must retain the above copyright notice, this
-# list of conditions and the following disclaimer.
-#
-# 2. Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-#
-# 3. Neither the name of the copyright holder nor the names of its
-# contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
"""
Shared utilities for grouped GEMM kernels.
diff --git a/python/cudnn/native_sparse_attention/__init__.py b/python/cudnn/native_sparse_attention/__init__.py
index 6d4f8220b..84fd65f91 100644
--- a/python/cudnn/native_sparse_attention/__init__.py
+++ b/python/cudnn/native_sparse_attention/__init__.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
from .selection import SelectionAttention, selection_attention_wrapper
from .compression import CompressionAttention, compression_attention_wrapper
from .sliding_window_attention import (
diff --git a/python/cudnn/native_sparse_attention/compression/__init__.py b/python/cudnn/native_sparse_attention/compression/__init__.py
index b44780956..02dea19a9 100644
--- a/python/cudnn/native_sparse_attention/compression/__init__.py
+++ b/python/cudnn/native_sparse_attention/compression/__init__.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
from .api import CompressionAttention, compression_attention_wrapper
__all__ = [
diff --git a/python/cudnn/native_sparse_attention/compression/api.py b/python/cudnn/native_sparse_attention/compression/api.py
index fc89c004d..c1c0f673f 100644
--- a/python/cudnn/native_sparse_attention/compression/api.py
+++ b/python/cudnn/native_sparse_attention/compression/api.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
from typing import Tuple, Optional
import math
diff --git a/python/cudnn/native_sparse_attention/compression/fmha.py b/python/cudnn/native_sparse_attention/compression/fmha.py
index a28eede15..4576fee9d 100644
--- a/python/cudnn/native_sparse_attention/compression/fmha.py
+++ b/python/cudnn/native_sparse_attention/compression/fmha.py
@@ -1,32 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
-
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-
-# 1. Redistributions of source code must retain the above copyright notice, this
-# list of conditions and the following disclaimer.
-
-# 2. Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-
-# 3. Neither the name of the copyright holder nor the names of its
-# contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
-
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
from typing import Type, Tuple, Optional
import cuda.bindings.driver as cuda
diff --git a/python/cudnn/native_sparse_attention/compression/fmha_helpers.py b/python/cudnn/native_sparse_attention/compression/fmha_helpers.py
index 51627cb80..56ae94a1a 100644
--- a/python/cudnn/native_sparse_attention/compression/fmha_helpers.py
+++ b/python/cudnn/native_sparse_attention/compression/fmha_helpers.py
@@ -1,5 +1,5 @@
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-License-Identifier: Apache-2.0
import enum
from typing import Tuple, Optional
diff --git a/python/cudnn/native_sparse_attention/selection/NSA_select_attn_fwd_hmma.py b/python/cudnn/native_sparse_attention/selection/NSA_select_attn_fwd_hmma.py
index 1360a66b5..3cd7c8b45 100644
--- a/python/cudnn/native_sparse_attention/selection/NSA_select_attn_fwd_hmma.py
+++ b/python/cudnn/native_sparse_attention/selection/NSA_select_attn_fwd_hmma.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
from typing import Callable, Union
import cuda.bindings.driver as cuda
diff --git a/python/cudnn/native_sparse_attention/selection/__init__.py b/python/cudnn/native_sparse_attention/selection/__init__.py
index 576723053..437d49ed5 100644
--- a/python/cudnn/native_sparse_attention/selection/__init__.py
+++ b/python/cudnn/native_sparse_attention/selection/__init__.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
from .api import SelectionAttention, selection_attention_wrapper
__all__ = [
diff --git a/python/cudnn/native_sparse_attention/selection/api.py b/python/cudnn/native_sparse_attention/selection/api.py
index 03ca47c2b..00daa7945 100644
--- a/python/cudnn/native_sparse_attention/selection/api.py
+++ b/python/cudnn/native_sparse_attention/selection/api.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
from .NSA_select_attn_fwd_hmma import HopperSelectAttentionFwd
from cudnn.datatypes import _convert_to_cutlass_data_type
from cudnn.api_base import APIBase, TupleDict
diff --git a/python/cudnn/native_sparse_attention/sliding_window_attention/__init__.py b/python/cudnn/native_sparse_attention/sliding_window_attention/__init__.py
index 7c0dc8fc7..1820f3b8f 100644
--- a/python/cudnn/native_sparse_attention/sliding_window_attention/__init__.py
+++ b/python/cudnn/native_sparse_attention/sliding_window_attention/__init__.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
from .api import SlidingWindowAttention, sliding_window_attention_wrapper
__all__ = [
diff --git a/python/cudnn/native_sparse_attention/sliding_window_attention/api.py b/python/cudnn/native_sparse_attention/sliding_window_attention/api.py
index 4cdb5a37d..b62fa53e8 100644
--- a/python/cudnn/native_sparse_attention/sliding_window_attention/api.py
+++ b/python/cudnn/native_sparse_attention/sliding_window_attention/api.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
from __future__ import annotations
import math
import cudnn
diff --git a/python/cudnn/native_sparse_attention/top_k/__init__.py b/python/cudnn/native_sparse_attention/top_k/__init__.py
index 06dc32184..57c8fd446 100644
--- a/python/cudnn/native_sparse_attention/top_k/__init__.py
+++ b/python/cudnn/native_sparse_attention/top_k/__init__.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
from .api import TopKReduction, topk_reduction_wrapper
__all__ = [
diff --git a/python/cudnn/native_sparse_attention/top_k/api.py b/python/cudnn/native_sparse_attention/top_k/api.py
index 3d0a5f639..59bcc11d1 100644
--- a/python/cudnn/native_sparse_attention/top_k/api.py
+++ b/python/cudnn/native_sparse_attention/top_k/api.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
from .nsa_top_k_reduction_fwd import FineGrainedReductionQK
from cuda.bindings import driver as cuda
diff --git a/python/cudnn/native_sparse_attention/top_k/nsa_top_k_reduction_fwd.py b/python/cudnn/native_sparse_attention/top_k/nsa_top_k_reduction_fwd.py
index 888c7b6a8..0034c60db 100644
--- a/python/cudnn/native_sparse_attention/top_k/nsa_top_k_reduction_fwd.py
+++ b/python/cudnn/native_sparse_attention/top_k/nsa_top_k_reduction_fwd.py
@@ -1,31 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
-
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-
-# 1. Redistributions of source code must retain the above copyright notice, this
-# list of conditions and the following disclaimer.
-
-# 2. Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-
-# 3. Neither the name of the copyright holder nor the names of its
-# contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
-
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
from typing import Tuple, Type, Optional
import cuda.bindings.driver as cuda
diff --git a/python/cudnn/native_sparse_attention/utils.py b/python/cudnn/native_sparse_attention/utils.py
index 9ec421baf..b769fc520 100644
--- a/python/cudnn/native_sparse_attention/utils.py
+++ b/python/cudnn/native_sparse_attention/utils.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
from typing import Tuple, Optional
import torch
diff --git a/python/cudnn/nodes.py b/python/cudnn/nodes.py
index 8a3537142..c7cfea510 100644
--- a/python/cudnn/nodes.py
+++ b/python/cudnn/nodes.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Pure Python node class for cuDNN Frontend graph representation.
Simple, Pythonic design - everything stored directly on the Node.
diff --git a/python/cudnn/ops/__init__.py b/python/cudnn/ops/__init__.py
index 5518db097..857081820 100644
--- a/python/cudnn/ops/__init__.py
+++ b/python/cudnn/ops/__init__.py
@@ -1 +1,4 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
from .causal_conv1d import causal_conv1d, causal_conv1d_nwh, b2b_causal_conv1d
diff --git a/python/cudnn/ops/causal_conv1d.py b/python/cudnn/ops/causal_conv1d.py
index 74512044b..235f199ef 100644
--- a/python/cudnn/ops/causal_conv1d.py
+++ b/python/cudnn/ops/causal_conv1d.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
from typing import List, Optional, Tuple
import torch
diff --git a/python/cudnn/rmsnorm_rht_amax/__init__.py b/python/cudnn/rmsnorm_rht_amax/__init__.py
index 9da5cae15..cf0b4266c 100644
--- a/python/cudnn/rmsnorm_rht_amax/__init__.py
+++ b/python/cudnn/rmsnorm_rht_amax/__init__.py
@@ -1,5 +1,5 @@
-# Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
from .api import (
RmsNormRhtAmaxSm100,
diff --git a/python/cudnn/rmsnorm_rht_amax/api.py b/python/cudnn/rmsnorm_rht_amax/api.py
index 0294a3a22..e071d1666 100644
--- a/python/cudnn/rmsnorm_rht_amax/api.py
+++ b/python/cudnn/rmsnorm_rht_amax/api.py
@@ -1,5 +1,5 @@
-# Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
"""FE API for fused RMSNorm + RHT + per-CTA amax."""
diff --git a/python/cudnn/rmsnorm_rht_amax/kernel.py b/python/cudnn/rmsnorm_rht_amax/kernel.py
index 98625010b..86a38fe52 100644
--- a/python/cudnn/rmsnorm_rht_amax/kernel.py
+++ b/python/cudnn/rmsnorm_rht_amax/kernel.py
@@ -1,5 +1,5 @@
-# Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
"""CUTE DSL kernel for fused RMSNorm + RHT + per-CTA amax."""
diff --git a/python/cudnn/sdpa/__init__.py b/python/cudnn/sdpa/__init__.py
index b200dcbda..cf16526f5 100644
--- a/python/cudnn/sdpa/__init__.py
+++ b/python/cudnn/sdpa/__init__.py
@@ -1,5 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
from .bwd import SdpabwdSm100D256, sdpa_bwd_wrapper_sm100_d256
from .fwd import SdpafwdSm100D256, sdpa_fwd_wrapper_sm100_d256
diff --git a/python/cudnn/sdpa/bwd/__init__.py b/python/cudnn/sdpa/bwd/__init__.py
index 0d0c368ed..21e4a53fc 100644
--- a/python/cudnn/sdpa/bwd/__init__.py
+++ b/python/cudnn/sdpa/bwd/__init__.py
@@ -1,5 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
from .api import SdpabwdSm100D256, sdpa_bwd_wrapper_sm100_d256
diff --git a/python/cudnn/sdpa/bwd/api.py b/python/cudnn/sdpa/bwd/api.py
index bd99fe3e9..8355924da 100644
--- a/python/cudnn/sdpa/bwd/api.py
+++ b/python/cudnn/sdpa/bwd/api.py
@@ -1,5 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
from typing import Optional, Tuple
import logging
diff --git a/python/cudnn/sdpa/bwd/fmha_backward_sm100_2kernel.py b/python/cudnn/sdpa/bwd/fmha_backward_sm100_2kernel.py
index 7528b238c..cbed35b0d 100644
--- a/python/cudnn/sdpa/bwd/fmha_backward_sm100_2kernel.py
+++ b/python/cudnn/sdpa/bwd/fmha_backward_sm100_2kernel.py
@@ -1,31 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
-
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-
-# 1. Redistributions of source code must retain the above copyright notice, this
-# list of conditions and the following disclaimer.
-
-# 2. Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-
-# 3. Neither the name of the copyright holder nor the names of its
-# contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
-
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
"""Fused multi-head attention (FMHA) backward for the SM100 architecture using CUTE DSL.
Constraints:
diff --git a/python/cudnn/sdpa/bwd/fmha_dkdv_d256_sm100.py b/python/cudnn/sdpa/bwd/fmha_dkdv_d256_sm100.py
index ad47e45e4..74d02c937 100644
--- a/python/cudnn/sdpa/bwd/fmha_dkdv_d256_sm100.py
+++ b/python/cudnn/sdpa/bwd/fmha_dkdv_d256_sm100.py
@@ -1,37 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
-
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-
-# 1. Redistributions of source code must retain the above copyright notice, this
-# list of conditions and the following disclaimer.
-
-# 2. Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-
-# 3. Neither the name of the copyright holder nor the names of its
-# contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
-
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-# This kernel was jointly developed by Shengbin Di, Yuxi Chi, and Linfeng
-# Zheng in close collaboration with Alibaba. We would like to extend special
-# thanks to the core contributors from Alibaba: Siyu Wang, Haoyan Huang,
-# Lanbo Li, Yun Zhong, Man Yuan, Minmin Sun, Yong Li, and Wei Lin for their
-# significant contributions to this work.
-
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
"""Fused multi-head attention (FMHA) backward for the SM100 architecture using CUTE DSL.
Constraints:
diff --git a/python/cudnn/sdpa/bwd/fmha_dq_d256_sm100.py b/python/cudnn/sdpa/bwd/fmha_dq_d256_sm100.py
index 4074cf846..4a3898548 100644
--- a/python/cudnn/sdpa/bwd/fmha_dq_d256_sm100.py
+++ b/python/cudnn/sdpa/bwd/fmha_dq_d256_sm100.py
@@ -1,37 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
-
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-
-# 1. Redistributions of source code must retain the above copyright notice, this
-# list of conditions and the following disclaimer.
-
-# 2. Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-
-# 3. Neither the name of the copyright holder nor the names of its
-# contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
-
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-# This kernel was jointly developed by Shengbin Di, Yuxi Chi, and Linfeng
-# Zheng in close collaboration with Alibaba. We would like to extend special
-# thanks to the core contributors from Alibaba: Siyu Wang, Haoyan Huang,
-# Lanbo Li, Yun Zhong, Man Yuan, Minmin Sun, Yong Li, and Wei Lin for their
-# significant contributions to this work.
-
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
from typing import Type, Tuple, Optional
import math
diff --git a/python/cudnn/sdpa/fmha_utils.py b/python/cudnn/sdpa/fmha_utils.py
index a1a26afb2..cd13a5c8b 100644
--- a/python/cudnn/sdpa/fmha_utils.py
+++ b/python/cudnn/sdpa/fmha_utils.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
# port from https://github.com/NVIDIA/cutlass/blob/main/examples/python/CuTeDSL/utils/fmha_helpers.py
import enum
diff --git a/python/cudnn/sdpa/fwd/__init__.py b/python/cudnn/sdpa/fwd/__init__.py
index bf95abac2..fde217cb3 100644
--- a/python/cudnn/sdpa/fwd/__init__.py
+++ b/python/cudnn/sdpa/fwd/__init__.py
@@ -1,5 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
from .api import SdpafwdSm100D256, sdpa_fwd_wrapper_sm100_d256
diff --git a/python/cudnn/sdpa/fwd/api.py b/python/cudnn/sdpa/fwd/api.py
index 90f4c76d3..9a1505ba6 100644
--- a/python/cudnn/sdpa/fwd/api.py
+++ b/python/cudnn/sdpa/fwd/api.py
@@ -1,5 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
from typing import Optional, Tuple
import logging
diff --git a/python/cudnn/sdpa/fwd/fmha_forward_sm100_d256.py b/python/cudnn/sdpa/fwd/fmha_forward_sm100_d256.py
index 7e6e68e7b..482bc054f 100644
--- a/python/cudnn/sdpa/fwd/fmha_forward_sm100_d256.py
+++ b/python/cudnn/sdpa/fwd/fmha_forward_sm100_d256.py
@@ -1,5 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
import argparse
import math
diff --git a/python/cudnn/sdpa/utils.py b/python/cudnn/sdpa/utils.py
index d4a1fedc5..beb9d04f3 100644
--- a/python/cudnn/sdpa/utils.py
+++ b/python/cudnn/sdpa/utils.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Custom utility for FMHA."""
import math
diff --git a/python/cudnn/wrapper.py b/python/cudnn/wrapper.py
index 56d696c55..e65e186ca 100644
--- a/python/cudnn/wrapper.py
+++ b/python/cudnn/wrapper.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Wrapper for cuDNN frontend to improve user experience.
This wrapper provides a more user-friendly interface for cuDNN frontend.
diff --git a/python/cudnn/yarn.py b/python/cudnn/yarn.py
index d3ac45f6d..15f791cef 100644
--- a/python/cudnn/yarn.py
+++ b/python/cudnn/yarn.py
@@ -1,5 +1,5 @@
-# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
"""YARN RoPE frequency computation.
Pure host-side implementation following the YARN paper (Peng et al., 2023, arXiv:2309.00071)
diff --git a/python/properties.cpp b/python/properties.cpp
index 69554e72b..f1be8b8db 100644
--- a/python/properties.cpp
+++ b/python/properties.cpp
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#include
#include "pybind11/pybind11.h"
diff --git a/python/pycudnn.cpp b/python/pycudnn.cpp
index 6b6492f61..b989f3314 100644
--- a/python/pycudnn.cpp
+++ b/python/pycudnn.cpp
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#include
#include "pybind11/pybind11.h"
diff --git a/python/pygraph/norm.cpp b/python/pygraph/norm.cpp
index 9bb044e67..14055ebfb 100644
--- a/python/pygraph/norm.cpp
+++ b/python/pygraph/norm.cpp
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#include
#include
diff --git a/python/pygraph/pointwise.cpp b/python/pygraph/pointwise.cpp
index f8d3d4592..503c0fcd2 100644
--- a/python/pygraph/pointwise.cpp
+++ b/python/pygraph/pointwise.cpp
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#include
#include "pybind11/pybind11.h"
diff --git a/python/pygraph/pygraph.cpp b/python/pygraph/pygraph.cpp
index ed04f9b19..f56181eb2 100644
--- a/python/pygraph/pygraph.cpp
+++ b/python/pygraph/pygraph.cpp
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#include
#include
#include
diff --git a/python/pygraph/pygraph.h b/python/pygraph/pygraph.h
index 4019f3560..63f557aa6 100644
--- a/python/pygraph/pygraph.h
+++ b/python/pygraph/pygraph.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#include
#include
#include
diff --git a/python/pygraph/sdpa.cpp b/python/pygraph/sdpa.cpp
index 57cc22c03..68fd3bcc4 100644
--- a/python/pygraph/sdpa.cpp
+++ b/python/pygraph/sdpa.cpp
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#include
#include "pybind11/pybind11.h"
diff --git a/samples/CMakeLists.txt b/samples/CMakeLists.txt
index 61845024b..00af95c1a 100644
--- a/samples/CMakeLists.txt
+++ b/samples/CMakeLists.txt
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: MIT
+
cmake_minimum_required(VERSION 3.18)
find_package(Threads)
diff --git a/samples/cpp/CMakeLists.txt b/samples/cpp/CMakeLists.txt
index 20dd24752..81db82352 100644
--- a/samples/cpp/CMakeLists.txt
+++ b/samples/cpp/CMakeLists.txt
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: MIT
+
# target sources
add_executable(
samples
diff --git a/samples/cpp/causal_conv1d/b2b_causal_conv1d.cpp b/samples/cpp/causal_conv1d/b2b_causal_conv1d.cpp
index 110941bc9..4c597f3b2 100644
--- a/samples/cpp/causal_conv1d/b2b_causal_conv1d.cpp
+++ b/samples/cpp/causal_conv1d/b2b_causal_conv1d.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2026, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/samples/cpp/causal_conv1d/causal_conv1d.cpp b/samples/cpp/causal_conv1d/causal_conv1d.cpp
index 9f8c35fde..95b4ee264 100644
--- a/samples/cpp/causal_conv1d/causal_conv1d.cpp
+++ b/samples/cpp/causal_conv1d/causal_conv1d.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2026, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/samples/cpp/causal_conv1d/causal_conv1d_nwh.cpp b/samples/cpp/causal_conv1d/causal_conv1d_nwh.cpp
index c0decbaa4..ba988227f 100644
--- a/samples/cpp/causal_conv1d/causal_conv1d_nwh.cpp
+++ b/samples/cpp/causal_conv1d/causal_conv1d_nwh.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2026, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/samples/cpp/convolution/conv_dynamic_shape_benchmark.cpp b/samples/cpp/convolution/conv_dynamic_shape_benchmark.cpp
index 65b332ca4..a4077cbf8 100644
--- a/samples/cpp/convolution/conv_dynamic_shape_benchmark.cpp
+++ b/samples/cpp/convolution/conv_dynamic_shape_benchmark.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/samples/cpp/convolution/dgrads.cpp b/samples/cpp/convolution/dgrads.cpp
index 4eb50ca23..e80d3fe35 100644
--- a/samples/cpp/convolution/dgrads.cpp
+++ b/samples/cpp/convolution/dgrads.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
*/
#include
diff --git a/samples/cpp/convolution/fp8_fprop.cpp b/samples/cpp/convolution/fp8_fprop.cpp
index ca8a278ec..d8818813a 100644
--- a/samples/cpp/convolution/fp8_fprop.cpp
+++ b/samples/cpp/convolution/fp8_fprop.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
*/
#include
diff --git a/samples/cpp/convolution/fprop.cpp b/samples/cpp/convolution/fprop.cpp
index bf8fd1b0c..14a706c6a 100644
--- a/samples/cpp/convolution/fprop.cpp
+++ b/samples/cpp/convolution/fprop.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
*/
#include
diff --git a/samples/cpp/convolution/int8_fprop.cpp b/samples/cpp/convolution/int8_fprop.cpp
index 52ebe488d..ac8185182 100644
--- a/samples/cpp/convolution/int8_fprop.cpp
+++ b/samples/cpp/convolution/int8_fprop.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
*/
#include
diff --git a/samples/cpp/convolution/wgrads.cpp b/samples/cpp/convolution/wgrads.cpp
index ee559848a..b43f77756 100644
--- a/samples/cpp/convolution/wgrads.cpp
+++ b/samples/cpp/convolution/wgrads.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
*/
#include
diff --git a/samples/cpp/matmul/blackwell_nvfp4_mxfp8_block_scale_matmul.cpp b/samples/cpp/matmul/blackwell_nvfp4_mxfp8_block_scale_matmul.cpp
index 592716e5c..e44fcf421 100644
--- a/samples/cpp/matmul/blackwell_nvfp4_mxfp8_block_scale_matmul.cpp
+++ b/samples/cpp/matmul/blackwell_nvfp4_mxfp8_block_scale_matmul.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
*/
#include
diff --git a/samples/cpp/matmul/complex_fp32_matmul.cpp b/samples/cpp/matmul/complex_fp32_matmul.cpp
index 0dadccee4..5cc11ba0c 100644
--- a/samples/cpp/matmul/complex_fp32_matmul.cpp
+++ b/samples/cpp/matmul/complex_fp32_matmul.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/samples/cpp/matmul/fp8_matmul.cpp b/samples/cpp/matmul/fp8_matmul.cpp
index 6fd9484a6..73ebebbc0 100644
--- a/samples/cpp/matmul/fp8_matmul.cpp
+++ b/samples/cpp/matmul/fp8_matmul.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
*/
#include
diff --git a/samples/cpp/matmul/general_block_scale_matmul.cpp b/samples/cpp/matmul/general_block_scale_matmul.cpp
index 3f65f67d4..9eb8ca6fc 100644
--- a/samples/cpp/matmul/general_block_scale_matmul.cpp
+++ b/samples/cpp/matmul/general_block_scale_matmul.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/samples/cpp/matmul/int8_matmul.cpp b/samples/cpp/matmul/int8_matmul.cpp
index 8499acbea..9ea980236 100644
--- a/samples/cpp/matmul/int8_matmul.cpp
+++ b/samples/cpp/matmul/int8_matmul.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
*/
#include
diff --git a/samples/cpp/matmul/matmuls.cpp b/samples/cpp/matmul/matmuls.cpp
index 96a44d806..9a7e17307 100644
--- a/samples/cpp/matmul/matmuls.cpp
+++ b/samples/cpp/matmul/matmuls.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
*/
#include
diff --git a/samples/cpp/matmul/mixed_matmul.cpp b/samples/cpp/matmul/mixed_matmul.cpp
index dddac3197..fbea26cf8 100644
--- a/samples/cpp/matmul/mixed_matmul.cpp
+++ b/samples/cpp/matmul/mixed_matmul.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
*/
#include
diff --git a/samples/cpp/membound/boolean_fusion.cpp b/samples/cpp/membound/boolean_fusion.cpp
index 5e62e30fb..ee0faf62f 100644
--- a/samples/cpp/membound/boolean_fusion.cpp
+++ b/samples/cpp/membound/boolean_fusion.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/samples/cpp/membound/concat.cpp b/samples/cpp/membound/concat.cpp
index 7f6b76182..e9de3bbf0 100644
--- a/samples/cpp/membound/concat.cpp
+++ b/samples/cpp/membound/concat.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/samples/cpp/membound/membound_fusion.cpp b/samples/cpp/membound/membound_fusion.cpp
index fcae67db6..3ea7638c4 100644
--- a/samples/cpp/membound/membound_fusion.cpp
+++ b/samples/cpp/membound/membound_fusion.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/samples/cpp/membound/reshape.cpp b/samples/cpp/membound/reshape.cpp
index 55c7ae67e..4dff50435 100644
--- a/samples/cpp/membound/reshape.cpp
+++ b/samples/cpp/membound/reshape.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/samples/cpp/membound/slice.cpp b/samples/cpp/membound/slice.cpp
index cfd652d09..037be791b 100644
--- a/samples/cpp/membound/slice.cpp
+++ b/samples/cpp/membound/slice.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/samples/cpp/membound/transpose.cpp b/samples/cpp/membound/transpose.cpp
index 8b86928bc..84488dd09 100644
--- a/samples/cpp/membound/transpose.cpp
+++ b/samples/cpp/membound/transpose.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/samples/cpp/misc/autotuning.cpp b/samples/cpp/misc/autotuning.cpp
index 5b5975818..9830995a1 100644
--- a/samples/cpp/misc/autotuning.cpp
+++ b/samples/cpp/misc/autotuning.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/samples/cpp/misc/compile_time_constant_example.cpp b/samples/cpp/misc/compile_time_constant_example.cpp
index f6b226436..d136d5979 100644
--- a/samples/cpp/misc/compile_time_constant_example.cpp
+++ b/samples/cpp/misc/compile_time_constant_example.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/samples/cpp/misc/cudagraphs.cpp b/samples/cpp/misc/cudagraphs.cpp
index e477a88b0..670f91544 100644
--- a/samples/cpp/misc/cudagraphs.cpp
+++ b/samples/cpp/misc/cudagraphs.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include "../utils/helpers.h"
diff --git a/samples/cpp/misc/custom_plan.cpp b/samples/cpp/misc/custom_plan.cpp
index 479579c1f..bcb3f9555 100644
--- a/samples/cpp/misc/custom_plan.cpp
+++ b/samples/cpp/misc/custom_plan.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/samples/cpp/misc/deviceless_aot_compilation.cpp b/samples/cpp/misc/deviceless_aot_compilation.cpp
index 77bf09b97..52284bd23 100644
--- a/samples/cpp/misc/deviceless_aot_compilation.cpp
+++ b/samples/cpp/misc/deviceless_aot_compilation.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/samples/cpp/misc/parallel_compilation.cpp b/samples/cpp/misc/parallel_compilation.cpp
index 85d7e4a80..b9da665ad 100644
--- a/samples/cpp/misc/parallel_compilation.cpp
+++ b/samples/cpp/misc/parallel_compilation.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/samples/cpp/misc/pointwise.cpp b/samples/cpp/misc/pointwise.cpp
index 59bc2ce57..7bc1834ba 100644
--- a/samples/cpp/misc/pointwise.cpp
+++ b/samples/cpp/misc/pointwise.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
*/
#include
diff --git a/samples/cpp/misc/resample.cpp b/samples/cpp/misc/resample.cpp
index 1061b13e6..a8d7aa6c3 100644
--- a/samples/cpp/misc/resample.cpp
+++ b/samples/cpp/misc/resample.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
*/
#include
diff --git a/samples/cpp/misc/serialization.cpp b/samples/cpp/misc/serialization.cpp
index b0f0c726f..3b9f1f02f 100644
--- a/samples/cpp/misc/serialization.cpp
+++ b/samples/cpp/misc/serialization.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
*/
#include
diff --git a/samples/cpp/misc/slice.cpp b/samples/cpp/misc/slice.cpp
index 84c04c415..57f34ab8c 100644
--- a/samples/cpp/misc/slice.cpp
+++ b/samples/cpp/misc/slice.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
*/
#include
diff --git a/samples/cpp/misc/sm_carveout.cpp b/samples/cpp/misc/sm_carveout.cpp
index 22ab5d345..b70630a23 100644
--- a/samples/cpp/misc/sm_carveout.cpp
+++ b/samples/cpp/misc/sm_carveout.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
*/
#include
diff --git a/samples/cpp/moe_grouped_matmul/moe_grouped_matmul.cpp b/samples/cpp/moe_grouped_matmul/moe_grouped_matmul.cpp
index 8fee59f21..a7ba753f8 100644
--- a/samples/cpp/moe_grouped_matmul/moe_grouped_matmul.cpp
+++ b/samples/cpp/moe_grouped_matmul/moe_grouped_matmul.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/samples/cpp/norm/adaptive_layernorm.cpp b/samples/cpp/norm/adaptive_layernorm.cpp
index 5012e91cc..eeecda728 100644
--- a/samples/cpp/norm/adaptive_layernorm.cpp
+++ b/samples/cpp/norm/adaptive_layernorm.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/samples/cpp/norm/batchnorm.cpp b/samples/cpp/norm/batchnorm.cpp
index 5b4807e29..4f0deba1e 100644
--- a/samples/cpp/norm/batchnorm.cpp
+++ b/samples/cpp/norm/batchnorm.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
*/
#include
diff --git a/samples/cpp/norm/layernorm.cpp b/samples/cpp/norm/layernorm.cpp
index b8951e4bf..72ddda20d 100644
--- a/samples/cpp/norm/layernorm.cpp
+++ b/samples/cpp/norm/layernorm.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
*/
#include
diff --git a/samples/cpp/norm/layernorm_bitmask_relu.cpp b/samples/cpp/norm/layernorm_bitmask_relu.cpp
index 7eefe734d..7c31c3acd 100644
--- a/samples/cpp/norm/layernorm_bitmask_relu.cpp
+++ b/samples/cpp/norm/layernorm_bitmask_relu.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/samples/cpp/norm/norm_block_scale.cpp b/samples/cpp/norm/norm_block_scale.cpp
index bbf433ae5..90ad810ec 100644
--- a/samples/cpp/norm/norm_block_scale.cpp
+++ b/samples/cpp/norm/norm_block_scale.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/samples/cpp/norm/norm_zero_centered_gamma.cpp b/samples/cpp/norm/norm_zero_centered_gamma.cpp
index a82ded08d..ea47c40a1 100644
--- a/samples/cpp/norm/norm_zero_centered_gamma.cpp
+++ b/samples/cpp/norm/norm_zero_centered_gamma.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/samples/cpp/norm/rmsnorm.cpp b/samples/cpp/norm/rmsnorm.cpp
index 529afdbcc..a702fdd6d 100644
--- a/samples/cpp/norm/rmsnorm.cpp
+++ b/samples/cpp/norm/rmsnorm.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
*/
#include
diff --git a/samples/cpp/sdpa/fp16_benchmark.cpp b/samples/cpp/sdpa/fp16_benchmark.cpp
index 883ad1a0d..19c507a35 100644
--- a/samples/cpp/sdpa/fp16_benchmark.cpp
+++ b/samples/cpp/sdpa/fp16_benchmark.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/samples/cpp/sdpa/fp16_bwd.cpp b/samples/cpp/sdpa/fp16_bwd.cpp
index dcd22fc63..38abb8a12 100644
--- a/samples/cpp/sdpa/fp16_bwd.cpp
+++ b/samples/cpp/sdpa/fp16_bwd.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
*/
#include
diff --git a/samples/cpp/sdpa/fp16_bwd_with_cudagraphs.cpp b/samples/cpp/sdpa/fp16_bwd_with_cudagraphs.cpp
index 8169094c8..3c66a5b22 100644
--- a/samples/cpp/sdpa/fp16_bwd_with_cudagraphs.cpp
+++ b/samples/cpp/sdpa/fp16_bwd_with_cudagraphs.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
*/
#include "../utils/helpers.h"
diff --git a/samples/cpp/sdpa/fp16_bwd_with_flexible_graphs.cpp b/samples/cpp/sdpa/fp16_bwd_with_flexible_graphs.cpp
index b2226e7cb..b39d367e8 100644
--- a/samples/cpp/sdpa/fp16_bwd_with_flexible_graphs.cpp
+++ b/samples/cpp/sdpa/fp16_bwd_with_flexible_graphs.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
*/
#include
diff --git a/samples/cpp/sdpa/fp16_bwd_with_sink_token.cpp b/samples/cpp/sdpa/fp16_bwd_with_sink_token.cpp
index 007e5ce5b..6f44c9ddd 100644
--- a/samples/cpp/sdpa/fp16_bwd_with_sink_token.cpp
+++ b/samples/cpp/sdpa/fp16_bwd_with_sink_token.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/samples/cpp/sdpa/fp16_cached.cpp b/samples/cpp/sdpa/fp16_cached.cpp
index de58b9431..594a2ba21 100644
--- a/samples/cpp/sdpa/fp16_cached.cpp
+++ b/samples/cpp/sdpa/fp16_cached.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
*/
#include
diff --git a/samples/cpp/sdpa/fp16_dynamic_shapes.cpp b/samples/cpp/sdpa/fp16_dynamic_shapes.cpp
index 612e2a5bd..18b8f71f7 100644
--- a/samples/cpp/sdpa/fp16_dynamic_shapes.cpp
+++ b/samples/cpp/sdpa/fp16_dynamic_shapes.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/samples/cpp/sdpa/fp16_fwd.cpp b/samples/cpp/sdpa/fp16_fwd.cpp
index 7a5384870..834c857aa 100644
--- a/samples/cpp/sdpa/fp16_fwd.cpp
+++ b/samples/cpp/sdpa/fp16_fwd.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
*/
#include
diff --git a/samples/cpp/sdpa/fp16_fwd_paged_decode_and_prefill.cpp b/samples/cpp/sdpa/fp16_fwd_paged_decode_and_prefill.cpp
index cc72266bc..17d5f8c0f 100644
--- a/samples/cpp/sdpa/fp16_fwd_paged_decode_and_prefill.cpp
+++ b/samples/cpp/sdpa/fp16_fwd_paged_decode_and_prefill.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
*/
#include
diff --git a/samples/cpp/sdpa/fp16_fwd_with_block_mask.cpp b/samples/cpp/sdpa/fp16_fwd_with_block_mask.cpp
index e049a3f26..5d979f68c 100644
--- a/samples/cpp/sdpa/fp16_fwd_with_block_mask.cpp
+++ b/samples/cpp/sdpa/fp16_fwd_with_block_mask.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/samples/cpp/sdpa/fp16_fwd_with_cu_seq_len.cpp b/samples/cpp/sdpa/fp16_fwd_with_cu_seq_len.cpp
index 96e2c713c..132543229 100644
--- a/samples/cpp/sdpa/fp16_fwd_with_cu_seq_len.cpp
+++ b/samples/cpp/sdpa/fp16_fwd_with_cu_seq_len.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2026, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/samples/cpp/sdpa/fp16_fwd_with_cudagraphs.cpp b/samples/cpp/sdpa/fp16_fwd_with_cudagraphs.cpp
index 3fb73b627..8e7430607 100644
--- a/samples/cpp/sdpa/fp16_fwd_with_cudagraphs.cpp
+++ b/samples/cpp/sdpa/fp16_fwd_with_cudagraphs.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
*/
#include "../utils/helpers.h"
diff --git a/samples/cpp/sdpa/fp16_fwd_with_custom_dropout.cpp b/samples/cpp/sdpa/fp16_fwd_with_custom_dropout.cpp
index 2e4559e0c..e8e451288 100644
--- a/samples/cpp/sdpa/fp16_fwd_with_custom_dropout.cpp
+++ b/samples/cpp/sdpa/fp16_fwd_with_custom_dropout.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
*/
#include
diff --git a/samples/cpp/sdpa/fp16_fwd_with_flexible_graphs.cpp b/samples/cpp/sdpa/fp16_fwd_with_flexible_graphs.cpp
index 9e9cd4b7b..686f3ed3c 100644
--- a/samples/cpp/sdpa/fp16_fwd_with_flexible_graphs.cpp
+++ b/samples/cpp/sdpa/fp16_fwd_with_flexible_graphs.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
*/
#include
diff --git a/samples/cpp/sdpa/fp16_fwd_with_max_and_sum_exp.cpp b/samples/cpp/sdpa/fp16_fwd_with_max_and_sum_exp.cpp
index 4bb0abe19..8f8bda28f 100644
--- a/samples/cpp/sdpa/fp16_fwd_with_max_and_sum_exp.cpp
+++ b/samples/cpp/sdpa/fp16_fwd_with_max_and_sum_exp.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/samples/cpp/sdpa/fp16_fwd_with_paged_caches.cpp b/samples/cpp/sdpa/fp16_fwd_with_paged_caches.cpp
index 492e96e4f..96ab812b6 100644
--- a/samples/cpp/sdpa/fp16_fwd_with_paged_caches.cpp
+++ b/samples/cpp/sdpa/fp16_fwd_with_paged_caches.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
*/
#include
diff --git a/samples/cpp/sdpa/fp16_fwd_with_sink_token.cpp b/samples/cpp/sdpa/fp16_fwd_with_sink_token.cpp
index 8fbde2ec8..c9e76b88e 100644
--- a/samples/cpp/sdpa/fp16_fwd_with_sink_token.cpp
+++ b/samples/cpp/sdpa/fp16_fwd_with_sink_token.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/samples/cpp/sdpa/fp8_bwd.cpp b/samples/cpp/sdpa/fp8_bwd.cpp
index c415d5fed..23617dc6a 100644
--- a/samples/cpp/sdpa/fp8_bwd.cpp
+++ b/samples/cpp/sdpa/fp8_bwd.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
*/
#include
diff --git a/samples/cpp/sdpa/fp8_bwd_bottom_right_causal_mask.cpp b/samples/cpp/sdpa/fp8_bwd_bottom_right_causal_mask.cpp
index a7f9606f3..bc5d37ab2 100644
--- a/samples/cpp/sdpa/fp8_bwd_bottom_right_causal_mask.cpp
+++ b/samples/cpp/sdpa/fp8_bwd_bottom_right_causal_mask.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
*/
#include
diff --git a/samples/cpp/sdpa/fp8_bwd_with_current_scaling.cpp b/samples/cpp/sdpa/fp8_bwd_with_current_scaling.cpp
index 70d6d9a4a..a3f9d060c 100644
--- a/samples/cpp/sdpa/fp8_bwd_with_current_scaling.cpp
+++ b/samples/cpp/sdpa/fp8_bwd_with_current_scaling.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/samples/cpp/sdpa/fp8_fwd.cpp b/samples/cpp/sdpa/fp8_fwd.cpp
index 2d37175f0..fbf61b7aa 100644
--- a/samples/cpp/sdpa/fp8_fwd.cpp
+++ b/samples/cpp/sdpa/fp8_fwd.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
*/
#include
diff --git a/samples/cpp/sdpa/fp8_fwd_bottom_right_causal_mask.cpp b/samples/cpp/sdpa/fp8_fwd_bottom_right_causal_mask.cpp
index 1869d0691..55cc1426a 100644
--- a/samples/cpp/sdpa/fp8_fwd_bottom_right_causal_mask.cpp
+++ b/samples/cpp/sdpa/fp8_fwd_bottom_right_causal_mask.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: MIT
*/
#include
diff --git a/samples/cpp/sdpa/fp8_fwd_current_scaling.cpp b/samples/cpp/sdpa/fp8_fwd_current_scaling.cpp
index d65dabb39..8f835e717 100644
--- a/samples/cpp/sdpa/fp8_fwd_current_scaling.cpp
+++ b/samples/cpp/sdpa/fp8_fwd_current_scaling.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/samples/cpp/sdpa/mxfp8_bwd.cpp b/samples/cpp/sdpa/mxfp8_bwd.cpp
index 089e29946..1b41afc24 100644
--- a/samples/cpp/sdpa/mxfp8_bwd.cpp
+++ b/samples/cpp/sdpa/mxfp8_bwd.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2026, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/samples/cpp/sdpa/mxfp8_fwd.cpp b/samples/cpp/sdpa/mxfp8_fwd.cpp
index f986fe97d..1aecd160c 100644
--- a/samples/cpp/sdpa/mxfp8_fwd.cpp
+++ b/samples/cpp/sdpa/mxfp8_fwd.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/samples/cpp/sdpa/prefill_oss_engine.cpp b/samples/cpp/sdpa/prefill_oss_engine.cpp
index e2be2219d..ae203a6af 100644
--- a/samples/cpp/sdpa/prefill_oss_engine.cpp
+++ b/samples/cpp/sdpa/prefill_oss_engine.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/samples/cpp/utils/helpers.h b/samples/cpp/utils/helpers.h
index a95395964..49c55e624 100644
--- a/samples/cpp/utils/helpers.h
+++ b/samples/cpp/utils/helpers.h
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
#include
diff --git a/samples/legacy_samples/CMakeLists.txt b/samples/legacy_samples/CMakeLists.txt
index 83b9a145a..3b3196842 100644
--- a/samples/legacy_samples/CMakeLists.txt
+++ b/samples/legacy_samples/CMakeLists.txt
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: MIT
+
# target sources
add_executable(
legacy_samples
diff --git a/samples/legacy_samples/conv_sample.cpp b/samples/legacy_samples/conv_sample.cpp
index 94230b1e3..4997aef1d 100644
--- a/samples/legacy_samples/conv_sample.cpp
+++ b/samples/legacy_samples/conv_sample.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include "conv_sample.h"
diff --git a/samples/legacy_samples/conv_sample.h b/samples/legacy_samples/conv_sample.h
index c51c3db1c..57e5a94bc 100644
--- a/samples/legacy_samples/conv_sample.h
+++ b/samples/legacy_samples/conv_sample.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2020 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#pragma once
diff --git a/samples/legacy_samples/cpu_references.h b/samples/legacy_samples/cpu_references.h
index 2c9bafcbe..ea9507d0e 100644
--- a/samples/legacy_samples/cpu_references.h
+++ b/samples/legacy_samples/cpu_references.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2020 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#pragma once
diff --git a/samples/legacy_samples/fp16_dev.cu b/samples/legacy_samples/fp16_dev.cu
index d2daa2a0c..f2ef63804 100644
--- a/samples/legacy_samples/fp16_dev.cu
+++ b/samples/legacy_samples/fp16_dev.cu
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2020 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include "./utils/error_util.h"
diff --git a/samples/legacy_samples/fp16_emu.cpp b/samples/legacy_samples/fp16_emu.cpp
index 6a2650b50..759a71268 100644
--- a/samples/legacy_samples/fp16_emu.cpp
+++ b/samples/legacy_samples/fp16_emu.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include "./utils/fp16_emu.h"
diff --git a/samples/legacy_samples/fp8_sample.cpp b/samples/legacy_samples/fp8_sample.cpp
index b39083fb5..e2e83ba18 100644
--- a/samples/legacy_samples/fp8_sample.cpp
+++ b/samples/legacy_samples/fp8_sample.cpp
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#include "fp8_sample.h"
#include
#include "./utils/error_util.h"
diff --git a/samples/legacy_samples/fp8_sample.h b/samples/legacy_samples/fp8_sample.h
index 6c459cd4d..d2beec410 100644
--- a/samples/legacy_samples/fp8_sample.h
+++ b/samples/legacy_samples/fp8_sample.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2020 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#pragma once
diff --git a/samples/legacy_samples/fusion_sample.cpp b/samples/legacy_samples/fusion_sample.cpp
index b0d1283d9..e7cf59aa3 100644
--- a/samples/legacy_samples/fusion_sample.cpp
+++ b/samples/legacy_samples/fusion_sample.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2020 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include "fusion_sample.h"
diff --git a/samples/legacy_samples/fusion_sample.h b/samples/legacy_samples/fusion_sample.h
index 83309a9f2..2fba08d55 100644
--- a/samples/legacy_samples/fusion_sample.h
+++ b/samples/legacy_samples/fusion_sample.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2020 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#pragma once
diff --git a/samples/legacy_samples/helpers.cpp b/samples/legacy_samples/helpers.cpp
index daca8f41a..835c8f6ee 100644
--- a/samples/legacy_samples/helpers.cpp
+++ b/samples/legacy_samples/helpers.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2020 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include "./utils/helpers.h"
diff --git a/samples/legacy_samples/norm_samples.cpp b/samples/legacy_samples/norm_samples.cpp
index cca9d8326..b6c184bdc 100644
--- a/samples/legacy_samples/norm_samples.cpp
+++ b/samples/legacy_samples/norm_samples.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2020 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include "norm_samples.h"
diff --git a/samples/legacy_samples/norm_samples.h b/samples/legacy_samples/norm_samples.h
index 480c3aa77..7ac6751fe 100644
--- a/samples/legacy_samples/norm_samples.h
+++ b/samples/legacy_samples/norm_samples.h
@@ -1,25 +1,8 @@
#pragma once
/*
- * Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2020 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#pragma once
diff --git a/samples/legacy_samples/test_list.cpp b/samples/legacy_samples/test_list.cpp
index 5004044db..9a43cd2de 100644
--- a/samples/legacy_samples/test_list.cpp
+++ b/samples/legacy_samples/test_list.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2020 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/samples/legacy_samples/utils/error_util.h b/samples/legacy_samples/utils/error_util.h
index ff54adef0..7dc6553ca 100644
--- a/samples/legacy_samples/utils/error_util.h
+++ b/samples/legacy_samples/utils/error_util.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2020 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#if !defined(_ERROR_UTIL_H_)
diff --git a/samples/legacy_samples/utils/fp16_dev.h b/samples/legacy_samples/utils/fp16_dev.h
index 2719ea244..44063b93d 100644
--- a/samples/legacy_samples/utils/fp16_dev.h
+++ b/samples/legacy_samples/utils/fp16_dev.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2020 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#if !defined(_FP16_DEV_H_)
diff --git a/samples/legacy_samples/utils/fp16_emu.h b/samples/legacy_samples/utils/fp16_emu.h
index 75099dd37..807202fe3 100644
--- a/samples/legacy_samples/utils/fp16_emu.h
+++ b/samples/legacy_samples/utils/fp16_emu.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2020 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#if !defined(_FP16_EMU_H_)
diff --git a/samples/legacy_samples/utils/helpers.h b/samples/legacy_samples/utils/helpers.h
index 1ab021098..bf6211d92 100644
--- a/samples/legacy_samples/utils/helpers.h
+++ b/samples/legacy_samples/utils/helpers.h
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2020 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#pragma once
diff --git a/samples/llama/100_download_weight.py b/samples/llama/100_download_weight.py
index 1759a5243..2f22b22f5 100644
--- a/samples/llama/100_download_weight.py
+++ b/samples/llama/100_download_weight.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""This script downloads the Llama 3.1 8B model weights from Hugging Face and saves them in a PyTorch .pt file.
The weights are saved in a PyTorch .pt file named "llama3.1_8b_weights.bf16.pt".
"""
diff --git a/samples/llama/101_hf_llama_tieout.py b/samples/llama/101_hf_llama_tieout.py
index dac59bfac..8031d78cd 100644
--- a/samples/llama/101_hf_llama_tieout.py
+++ b/samples/llama/101_hf_llama_tieout.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""This script creates a PyTorch implementation of the Llama 3.1 8B model
using Hugging Face transformers library and loads the pretrained weights.
diff --git a/samples/llama/102_torch_llama_tieout.py b/samples/llama/102_torch_llama_tieout.py
index 7179b00f3..fa3c437ff 100644
--- a/samples/llama/102_torch_llama_tieout.py
+++ b/samples/llama/102_torch_llama_tieout.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Build a concise PyTorch implementation of the Llama 3.1 8B model that can seamlessly
accept the LlamaModel model weight from Hugging Face.
diff --git a/samples/llama/103_cudnn_llama_tieout.py b/samples/llama/103_cudnn_llama_tieout.py
index 58a02a644..b6dc5dffd 100644
--- a/samples/llama/103_cudnn_llama_tieout.py
+++ b/samples/llama/103_cudnn_llama_tieout.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Build a concise PyTorch implementation of the Llama 3.1 8B model with cuDNN optimizations
that can seamlessly accept the LlamaModel model weight from Hugging Face.
diff --git a/samples/llama/104_torch_llama_nvtx.py b/samples/llama/104_torch_llama_nvtx.py
index 4304edfdb..aca37cef1 100644
--- a/samples/llama/104_torch_llama_nvtx.py
+++ b/samples/llama/104_torch_llama_nvtx.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Profile a concise PyTorch implementation of the Llama 3.1 8B model. The model
accepts the LlamaModel model weight from Hugging Face, and profiles the forward
and backward passes using NVTX.
diff --git a/samples/llama/105_cudnn_llama_nvtx.py b/samples/llama/105_cudnn_llama_nvtx.py
index c25203f68..e88000a4c 100644
--- a/samples/llama/105_cudnn_llama_nvtx.py
+++ b/samples/llama/105_cudnn_llama_nvtx.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Profile a concise PyTorch implementation of the Llama 3.1 8B model with cuDNN optimizations.
This implementation accept the LlamaModel model weight from Hugging Face, and profiles the forward
and backward passes using NVTX.
diff --git a/samples/llama/decode_nvtx_profile.py b/samples/llama/decode_nvtx_profile.py
index 84279cb20..b2d65202c 100644
--- a/samples/llama/decode_nvtx_profile.py
+++ b/samples/llama/decode_nvtx_profile.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import os
import bisect
import sqlite3
diff --git a/samples/llm_coverage/test_gqa_b+h+s+d.py b/samples/llm_coverage/test_gqa_b+h+s+d.py
index 9c7f971e5..ebbac6ecb 100644
--- a/samples/llm_coverage/test_gqa_b+h+s+d.py
+++ b/samples/llm_coverage/test_gqa_b+h+s+d.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Test cuDNN grouped query attention support surface and tieout with PyTorch implementation"""
import functools
diff --git a/samples/llm_coverage/test_linear+swish_1+bs+d.py b/samples/llm_coverage/test_linear+swish_1+bs+d.py
index 175a3a51d..1c8b239b2 100644
--- a/samples/llm_coverage/test_linear+swish_1+bs+d.py
+++ b/samples/llm_coverage/test_linear+swish_1+bs+d.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Test cuDNN matmul+pointwise swish support surface and tieout with PyTorch implementation"""
import functools
diff --git a/samples/llm_coverage/test_linear_1+bs+d.py b/samples/llm_coverage/test_linear_1+bs+d.py
index 76360e8a8..c8d2c2e22 100644
--- a/samples/llm_coverage/test_linear_1+bs+d.py
+++ b/samples/llm_coverage/test_linear_1+bs+d.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Test cuDNN matmul support surface and tieout with PyTorch implementation"""
import functools
diff --git a/samples/llm_coverage/test_linear_b+s+d.py b/samples/llm_coverage/test_linear_b+s+d.py
index 44efc223d..20561cfec 100644
--- a/samples/llm_coverage/test_linear_b+s+d.py
+++ b/samples/llm_coverage/test_linear_b+s+d.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Test cuDNN matmul support surface and tieout with PyTorch implementation"""
import functools
diff --git a/samples/llm_coverage/test_linear_b+s+d_fp32compute.py b/samples/llm_coverage/test_linear_b+s+d_fp32compute.py
index 6b5de3e9c..7249d0296 100644
--- a/samples/llm_coverage/test_linear_b+s+d_fp32compute.py
+++ b/samples/llm_coverage/test_linear_b+s+d_fp32compute.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Test cuDNN matmul support surface and tieout with PyTorch implementation"""
import functools
diff --git a/samples/llm_coverage/test_rmsnorm_b+s+d.py b/samples/llm_coverage/test_rmsnorm_b+s+d.py
index d1bc4fe01..322ad0809 100644
--- a/samples/llm_coverage/test_rmsnorm_b+s+d.py
+++ b/samples/llm_coverage/test_rmsnorm_b+s+d.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Test cuDNN RMSNorm support surface and tieout with PyTorch implementation"""
import functools
diff --git a/samples/llm_coverage/test_rmsnorm_bs+d.py b/samples/llm_coverage/test_rmsnorm_bs+d.py
index 012c3c6f3..9ab7947e1 100644
--- a/samples/llm_coverage/test_rmsnorm_bs+d.py
+++ b/samples/llm_coverage/test_rmsnorm_bs+d.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Test cuDNN RMSNorm support surface and tieout with PyTorch implementation"""
import functools
diff --git a/samples/llm_coverage/test_rope_b+s+h+d.py b/samples/llm_coverage/test_rope_b+s+h+d.py
index a39215b46..61d095157 100644
--- a/samples/llm_coverage/test_rope_b+s+h+d.py
+++ b/samples/llm_coverage/test_rope_b+s+h+d.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Test cuDNN Rotary Embedding support surface and tieout with PyTorch implementation"""
import functools
diff --git a/samples/llm_coverage/test_swiglu_1+bs+d.py b/samples/llm_coverage/test_swiglu_1+bs+d.py
index e25f39767..818e2274b 100644
--- a/samples/llm_coverage/test_swiglu_1+bs+d.py
+++ b/samples/llm_coverage/test_swiglu_1+bs+d.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Test cuDNN SwiGLU support surface and tieout with PyTorch implementation"""
import functools
diff --git a/samples/llm_coverage/test_swiglu_layer_1+bs+d.py b/samples/llm_coverage/test_swiglu_layer_1+bs+d.py
index 05c452682..ea04302b2 100644
--- a/samples/llm_coverage/test_swiglu_layer_1+bs+d.py
+++ b/samples/llm_coverage/test_swiglu_layer_1+bs+d.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Test cuDNN SwiGLU support surface and tieout with PyTorch implementation"""
import functools
diff --git a/setup.py b/setup.py
index 222d430f9..b6144f20b 100644
--- a/setup.py
+++ b/setup.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: MIT
+
import os
import subprocess
import sys
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 86822eb91..71978d999 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
cmake_minimum_required(VERSION 3.18)
add_subdirectory(cpp)
diff --git a/test/cpp/CMakeLists.txt b/test/cpp/CMakeLists.txt
index fc25ff4b4..b08abbd7b 100644
--- a/test/cpp/CMakeLists.txt
+++ b/test/cpp/CMakeLists.txt
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: MIT
+
cmake_minimum_required(VERSION 3.18)
find_package(Catch2 QUIET)
diff --git a/test/cpp/get_engine_and_knobs.cpp b/test/cpp/get_engine_and_knobs.cpp
index c54e9f4c7..e67ae2749 100644
--- a/test/cpp/get_engine_and_knobs.cpp
+++ b/test/cpp/get_engine_and_knobs.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/test/cpp/pointwise_tests.cpp b/test/cpp/pointwise_tests.cpp
index ad3e350ce..ef8952398 100644
--- a/test/cpp/pointwise_tests.cpp
+++ b/test/cpp/pointwise_tests.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/test/cpp/serialize.cpp b/test/cpp/serialize.cpp
index c7253de9c..ccf59da55 100644
--- a/test/cpp/serialize.cpp
+++ b/test/cpp/serialize.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/test/cpp/tensor.cpp b/test/cpp/tensor.cpp
index aaf433a76..e127e548e 100644
--- a/test/cpp/tensor.cpp
+++ b/test/cpp/tensor.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/test/cpp/validate.cpp b/test/cpp/validate.cpp
index 426f9392c..fe6a7ae2f 100644
--- a/test/cpp/validate.cpp
+++ b/test/cpp/validate.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/test/cpp/version.cpp b/test/cpp/version.cpp
index 9cbc830ad..134f0a5e5 100644
--- a/test/cpp/version.cpp
+++ b/test/cpp/version.cpp
@@ -1,23 +1,6 @@
/*
- * Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
+ * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
*/
#include
diff --git a/test/python/conftest.py b/test/python/conftest.py
index 4ca047992..6bb3907e0 100644
--- a/test/python/conftest.py
+++ b/test/python/conftest.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import os
# Caps peak GPU memory across long pytest-xdist runs (e.g. test_mhas_v2 ~2.5k
diff --git a/test/python/fe_api/bsa/__init__.py b/test/python/fe_api/bsa/__init__.py
index 8b1378917..a4d636226 100644
--- a/test/python/fe_api/bsa/__init__.py
+++ b/test/python/fe_api/bsa/__init__.py
@@ -1 +1,3 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
diff --git a/test/python/fe_api/bsa/bsa_reference.py b/test/python/fe_api/bsa/bsa_reference.py
index f6247e658..112ca3c3a 100644
--- a/test/python/fe_api/bsa/bsa_reference.py
+++ b/test/python/fe_api/bsa/bsa_reference.py
@@ -1,5 +1,5 @@
-# Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
import math
from typing import Optional
diff --git a/test/python/fe_api/bsa/bsa_utils.py b/test/python/fe_api/bsa/bsa_utils.py
index 06a769019..bc86ca9a6 100644
--- a/test/python/fe_api/bsa/bsa_utils.py
+++ b/test/python/fe_api/bsa/bsa_utils.py
@@ -1,5 +1,5 @@
-# Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
import pytest
import torch
diff --git a/test/python/fe_api/bsa/test_BSA_attention_backward.py b/test/python/fe_api/bsa/test_BSA_attention_backward.py
index 703e1c561..c80e9fd32 100644
--- a/test/python/fe_api/bsa/test_BSA_attention_backward.py
+++ b/test/python/fe_api/bsa/test_BSA_attention_backward.py
@@ -1,5 +1,5 @@
-# Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
import importlib
diff --git a/test/python/fe_api/bsa/test_BSA_attention_forward.py b/test/python/fe_api/bsa/test_BSA_attention_forward.py
index 0433525d4..ea44925f8 100644
--- a/test/python/fe_api/bsa/test_BSA_attention_forward.py
+++ b/test/python/fe_api/bsa/test_BSA_attention_forward.py
@@ -1,5 +1,5 @@
-# Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: MIT
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
import importlib
from types import SimpleNamespace
diff --git a/test/python/fe_api/dsa/dsa_reference.py b/test/python/fe_api/dsa/dsa_reference.py
index 16d056c6c..1467c6a94 100644
--- a/test/python/fe_api/dsa/dsa_reference.py
+++ b/test/python/fe_api/dsa/dsa_reference.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Reference implementations for DSA (DeepSeek Sparse Attention) tests.
diff --git a/test/python/fe_api/dsa/dsa_utils.py b/test/python/fe_api/dsa/dsa_utils.py
index 269f83c13..b953a5f2f 100644
--- a/test/python/fe_api/dsa/dsa_utils.py
+++ b/test/python/fe_api/dsa/dsa_utils.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: MIT
+
"""
Utilities for DSA (DeepSeek Sparse Attention) tests.
diff --git a/test/python/fe_api/dsa/test_DSA_dense_indexer_backward.py b/test/python/fe_api/dsa/test_DSA_dense_indexer_backward.py
index 297655270..283b031d5 100644
--- a/test/python/fe_api/dsa/test_DSA_dense_indexer_backward.py
+++ b/test/python/fe_api/dsa/test_DSA_dense_indexer_backward.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import pytest
import torch
diff --git a/test/python/fe_api/dsa/test_DSA_dense_score_recompute.py b/test/python/fe_api/dsa/test_DSA_dense_score_recompute.py
index 14d7512b4..dd7d36754 100644
--- a/test/python/fe_api/dsa/test_DSA_dense_score_recompute.py
+++ b/test/python/fe_api/dsa/test_DSA_dense_score_recompute.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import math
import pytest
diff --git a/test/python/fe_api/dsa/test_DSA_indexer_backward.py b/test/python/fe_api/dsa/test_DSA_indexer_backward.py
index 0f4128330..6f8b41c1f 100644
--- a/test/python/fe_api/dsa/test_DSA_indexer_backward.py
+++ b/test/python/fe_api/dsa/test_DSA_indexer_backward.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import pytest
import torch
diff --git a/test/python/fe_api/dsa/test_DSA_indexer_forward.py b/test/python/fe_api/dsa/test_DSA_indexer_forward.py
index aa0fd812b..46f85dfc1 100644
--- a/test/python/fe_api/dsa/test_DSA_indexer_forward.py
+++ b/test/python/fe_api/dsa/test_DSA_indexer_forward.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import pytest
import torch
diff --git a/test/python/fe_api/dsa/test_DSA_indexer_top_k.py b/test/python/fe_api/dsa/test_DSA_indexer_top_k.py
index 0f427bfe0..9d68076b3 100644
--- a/test/python/fe_api/dsa/test_DSA_indexer_top_k.py
+++ b/test/python/fe_api/dsa/test_DSA_indexer_top_k.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import pytest
import torch
diff --git a/test/python/fe_api/dsa/test_DSA_runtime.py b/test/python/fe_api/dsa/test_DSA_runtime.py
index 1b4611f21..66f118b13 100644
--- a/test/python/fe_api/dsa/test_DSA_runtime.py
+++ b/test/python/fe_api/dsa/test_DSA_runtime.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import pytest
import torch
diff --git a/test/python/fe_api/dsa/test_DSA_sparse_attention_backward.py b/test/python/fe_api/dsa/test_DSA_sparse_attention_backward.py
index d0e6548e4..cf0ac0e52 100644
--- a/test/python/fe_api/dsa/test_DSA_sparse_attention_backward.py
+++ b/test/python/fe_api/dsa/test_DSA_sparse_attention_backward.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: MIT
+
"""Tests for SparseAttentionBackward.
The forward pass is a PyTorch reference (see dsa_reference.ref_sparse_attention_forward);
diff --git a/test/python/fe_api/dsa/test_DSA_sparse_score_recompute.py b/test/python/fe_api/dsa/test_DSA_sparse_score_recompute.py
index bf975de17..a9ec846e3 100644
--- a/test/python/fe_api/dsa/test_DSA_sparse_score_recompute.py
+++ b/test/python/fe_api/dsa/test_DSA_sparse_score_recompute.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: MIT
+
import math
import pytest
diff --git a/test/python/fe_api/gemm/test_gemm_amax.py b/test/python/fe_api/gemm/test_gemm_amax.py
index 58b5aad27..ecaa38151 100644
--- a/test/python/fe_api/gemm/test_gemm_amax.py
+++ b/test/python/fe_api/gemm/test_gemm_amax.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import torch
import pytest
diff --git a/test/python/fe_api/gemm/test_gemm_amax_utils.py b/test/python/fe_api/gemm/test_gemm_amax_utils.py
index e97068805..fd2716b9f 100644
--- a/test/python/fe_api/gemm/test_gemm_amax_utils.py
+++ b/test/python/fe_api/gemm/test_gemm_amax_utils.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Utilities and parameterization for GEMM Amax tests.
Contains test configuration fixtures, tensor creation, and reference implementations.
diff --git a/test/python/fe_api/gemm/test_gemm_dsrelu.py b/test/python/fe_api/gemm/test_gemm_dsrelu.py
index be2e262fd..9fa9f9073 100644
--- a/test/python/fe_api/gemm/test_gemm_dsrelu.py
+++ b/test/python/fe_api/gemm/test_gemm_dsrelu.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import pytest
import torch
diff --git a/test/python/fe_api/gemm/test_gemm_dsrelu_utils.py b/test/python/fe_api/gemm/test_gemm_dsrelu_utils.py
index d78babfd3..9525d8482 100644
--- a/test/python/fe_api/gemm/test_gemm_dsrelu_utils.py
+++ b/test/python/fe_api/gemm/test_gemm_dsrelu_utils.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import pytest
import torch
diff --git a/test/python/fe_api/gemm/test_gemm_proj_rope_mxfp8.py b/test/python/fe_api/gemm/test_gemm_proj_rope_mxfp8.py
index 062c30434..5c9a32855 100644
--- a/test/python/fe_api/gemm/test_gemm_proj_rope_mxfp8.py
+++ b/test/python/fe_api/gemm/test_gemm_proj_rope_mxfp8.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import torch
import pytest
diff --git a/test/python/fe_api/gemm/test_gemm_proj_rope_mxfp8_utils.py b/test/python/fe_api/gemm/test_gemm_proj_rope_mxfp8_utils.py
index 739da58e8..3ff7a04bb 100644
--- a/test/python/fe_api/gemm/test_gemm_proj_rope_mxfp8_utils.py
+++ b/test/python/fe_api/gemm/test_gemm_proj_rope_mxfp8_utils.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Utilities and parameterization for the fused GEMM + per-head RoPE + MXFP8 projection tests.
Contains test configuration, tensor creation, and reference comparison helpers.
diff --git a/test/python/fe_api/gemm/test_gemm_srelu.py b/test/python/fe_api/gemm/test_gemm_srelu.py
index e35cd737d..feeb32e0a 100644
--- a/test/python/fe_api/gemm/test_gemm_srelu.py
+++ b/test/python/fe_api/gemm/test_gemm_srelu.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import pytest
import torch
diff --git a/test/python/fe_api/gemm/test_gemm_srelu_utils.py b/test/python/fe_api/gemm/test_gemm_srelu_utils.py
index ee4457c79..b87bba61a 100644
--- a/test/python/fe_api/gemm/test_gemm_srelu_utils.py
+++ b/test/python/fe_api/gemm/test_gemm_srelu_utils.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import pytest
import torch
diff --git a/test/python/fe_api/gemm/test_gemm_swiglu.py b/test/python/fe_api/gemm/test_gemm_swiglu.py
index 359bf2b07..145065e6e 100644
--- a/test/python/fe_api/gemm/test_gemm_swiglu.py
+++ b/test/python/fe_api/gemm/test_gemm_swiglu.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import torch
import pytest
diff --git a/test/python/fe_api/gemm/test_gemm_swiglu_utils.py b/test/python/fe_api/gemm/test_gemm_swiglu_utils.py
index ef01bfb19..be761e574 100644
--- a/test/python/fe_api/gemm/test_gemm_swiglu_utils.py
+++ b/test/python/fe_api/gemm/test_gemm_swiglu_utils.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Utilities and parameterization for GEMM SwiGLU tests.
Contains test configuration fixtures, tensor creation, and reference implementations.
diff --git a/test/python/fe_api/grouped_gemm/test_discrete_grouped_gemm_dswiglu.py b/test/python/fe_api/grouped_gemm/test_discrete_grouped_gemm_dswiglu.py
index 2bc1b051e..24155b977 100644
--- a/test/python/fe_api/grouped_gemm/test_discrete_grouped_gemm_dswiglu.py
+++ b/test/python/fe_api/grouped_gemm/test_discrete_grouped_gemm_dswiglu.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Tests for Discrete-weight Grouped GEMM dGLU Backward Kernel (SM100+)
"""
diff --git a/test/python/fe_api/grouped_gemm/test_discrete_grouped_gemm_dswiglu_utils.py b/test/python/fe_api/grouped_gemm/test_discrete_grouped_gemm_dswiglu_utils.py
index 1f5edae27..6a01995b5 100644
--- a/test/python/fe_api/grouped_gemm/test_discrete_grouped_gemm_dswiglu_utils.py
+++ b/test/python/fe_api/grouped_gemm/test_discrete_grouped_gemm_dswiglu_utils.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Utilities and parameterization for Discrete-weight Grouped GEMM dGLU backward tests.
"""
diff --git a/test/python/fe_api/grouped_gemm/test_discrete_grouped_gemm_swiglu.py b/test/python/fe_api/grouped_gemm/test_discrete_grouped_gemm_swiglu.py
index e407095e0..542e88dad 100644
--- a/test/python/fe_api/grouped_gemm/test_discrete_grouped_gemm_swiglu.py
+++ b/test/python/fe_api/grouped_gemm/test_discrete_grouped_gemm_swiglu.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Tests for Discrete-weight Grouped GEMM GLU Forward Kernel (SM100+)
diff --git a/test/python/fe_api/grouped_gemm/test_discrete_grouped_gemm_swiglu_utils.py b/test/python/fe_api/grouped_gemm/test_discrete_grouped_gemm_swiglu_utils.py
index 04efb47b5..dc5fac3ce 100644
--- a/test/python/fe_api/grouped_gemm/test_discrete_grouped_gemm_swiglu_utils.py
+++ b/test/python/fe_api/grouped_gemm/test_discrete_grouped_gemm_swiglu_utils.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Utilities and parameterization for Discrete-weight Grouped GEMM GLU tests.
Contains test configuration fixtures, tensor creation, and reference implementations.
diff --git a/test/python/fe_api/grouped_gemm/test_grouped_gemm_dglu.py b/test/python/fe_api/grouped_gemm/test_grouped_gemm_dglu.py
index 0f7757d17..cc1b3157b 100644
--- a/test/python/fe_api/grouped_gemm/test_grouped_gemm_dglu.py
+++ b/test/python/fe_api/grouped_gemm/test_grouped_gemm_dglu.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Tests for Unified Grouped GEMM dGLU Backward Kernel (SM100+)
diff --git a/test/python/fe_api/grouped_gemm/test_grouped_gemm_dsrelu.py b/test/python/fe_api/grouped_gemm/test_grouped_gemm_dsrelu.py
index 02f8ed1dd..37c495704 100644
--- a/test/python/fe_api/grouped_gemm/test_grouped_gemm_dsrelu.py
+++ b/test/python/fe_api/grouped_gemm/test_grouped_gemm_dsrelu.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Tests for Grouped GEMM dSReLU Backward Kernel (SM100+)
diff --git a/test/python/fe_api/grouped_gemm/test_grouped_gemm_dsrelu_utils.py b/test/python/fe_api/grouped_gemm/test_grouped_gemm_dsrelu_utils.py
index 406058191..9b70f1aff 100644
--- a/test/python/fe_api/grouped_gemm/test_grouped_gemm_dsrelu_utils.py
+++ b/test/python/fe_api/grouped_gemm/test_grouped_gemm_dsrelu_utils.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Utilities and parameterization for Grouped GEMM dSReLU backward tests.
Contains test configuration fixtures, tensor creation, and reference implementations.
diff --git a/test/python/fe_api/grouped_gemm/test_grouped_gemm_dswiglu.py b/test/python/fe_api/grouped_gemm/test_grouped_gemm_dswiglu.py
index 082a895a9..a1ce58f25 100644
--- a/test/python/fe_api/grouped_gemm/test_grouped_gemm_dswiglu.py
+++ b/test/python/fe_api/grouped_gemm/test_grouped_gemm_dswiglu.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Tests for Grouped GEMM dSwiGLU Backward Kernel (SM100+)
diff --git a/test/python/fe_api/grouped_gemm/test_grouped_gemm_dswiglu_utils.py b/test/python/fe_api/grouped_gemm/test_grouped_gemm_dswiglu_utils.py
index 379ffd034..7daae6403 100644
--- a/test/python/fe_api/grouped_gemm/test_grouped_gemm_dswiglu_utils.py
+++ b/test/python/fe_api/grouped_gemm/test_grouped_gemm_dswiglu_utils.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Utilities and parameterization for Grouped GEMM dSwiGLU backward tests.
Contains test configuration fixtures, tensor creation, and reference implementations.
diff --git a/test/python/fe_api/grouped_gemm/test_grouped_gemm_glu.py b/test/python/fe_api/grouped_gemm/test_grouped_gemm_glu.py
index 732b45131..fa0daf451 100644
--- a/test/python/fe_api/grouped_gemm/test_grouped_gemm_glu.py
+++ b/test/python/fe_api/grouped_gemm/test_grouped_gemm_glu.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Tests for Unified Grouped GEMM GLU Forward Kernel (SM100+)
diff --git a/test/python/fe_api/grouped_gemm/test_grouped_gemm_glu_hadamard.py b/test/python/fe_api/grouped_gemm/test_grouped_gemm_glu_hadamard.py
index 932c14cd5..568a0e153 100644
--- a/test/python/fe_api/grouped_gemm/test_grouped_gemm_glu_hadamard.py
+++ b/test/python/fe_api/grouped_gemm/test_grouped_gemm_glu_hadamard.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Tests for grouped GEMM GLU + Hadamard forward fusion (SM100+)."""
from typing import Dict
diff --git a/test/python/fe_api/grouped_gemm/test_grouped_gemm_quant.py b/test/python/fe_api/grouped_gemm/test_grouped_gemm_quant.py
index e8ec2f7d2..07de23fd7 100644
--- a/test/python/fe_api/grouped_gemm/test_grouped_gemm_quant.py
+++ b/test/python/fe_api/grouped_gemm/test_grouped_gemm_quant.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Tests for Grouped GEMM Quant Kernel (SM100+)
diff --git a/test/python/fe_api/grouped_gemm/test_grouped_gemm_quant_utils.py b/test/python/fe_api/grouped_gemm/test_grouped_gemm_quant_utils.py
index a1c9160e7..2067e9173 100644
--- a/test/python/fe_api/grouped_gemm/test_grouped_gemm_quant_utils.py
+++ b/test/python/fe_api/grouped_gemm/test_grouped_gemm_quant_utils.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Utilities and parameterization for Grouped GEMM Quant tests.
Contains test configuration fixtures, tensor creation, and reference implementations.
diff --git a/test/python/fe_api/grouped_gemm/test_grouped_gemm_srelu.py b/test/python/fe_api/grouped_gemm/test_grouped_gemm_srelu.py
index 402803e84..5bb1e4b6a 100644
--- a/test/python/fe_api/grouped_gemm/test_grouped_gemm_srelu.py
+++ b/test/python/fe_api/grouped_gemm/test_grouped_gemm_srelu.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Tests for Grouped GEMM SReLU Forward Kernel (SM100+)
diff --git a/test/python/fe_api/grouped_gemm/test_grouped_gemm_srelu_utils.py b/test/python/fe_api/grouped_gemm/test_grouped_gemm_srelu_utils.py
index c1c059a87..a4d37c53f 100644
--- a/test/python/fe_api/grouped_gemm/test_grouped_gemm_srelu_utils.py
+++ b/test/python/fe_api/grouped_gemm/test_grouped_gemm_srelu_utils.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Utilities and parameterization for Grouped GEMM SReLU tests.
Contains test configuration fixtures, tensor creation, and reference implementations.
diff --git a/test/python/fe_api/grouped_gemm/test_grouped_gemm_swiglu.py b/test/python/fe_api/grouped_gemm/test_grouped_gemm_swiglu.py
index 28d262b6a..43d3f32a4 100644
--- a/test/python/fe_api/grouped_gemm/test_grouped_gemm_swiglu.py
+++ b/test/python/fe_api/grouped_gemm/test_grouped_gemm_swiglu.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Tests for Grouped GEMM SwiGLU Forward Kernel (SM100+)
diff --git a/test/python/fe_api/grouped_gemm/test_grouped_gemm_swiglu_utils.py b/test/python/fe_api/grouped_gemm/test_grouped_gemm_swiglu_utils.py
index e81eb919f..f7c1bec64 100644
--- a/test/python/fe_api/grouped_gemm/test_grouped_gemm_swiglu_utils.py
+++ b/test/python/fe_api/grouped_gemm/test_grouped_gemm_swiglu_utils.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Utilities and parameterization for Grouped GEMM SwiGLU tests.
Contains test configuration fixtures, tensor creation, and reference implementations.
diff --git a/test/python/fe_api/grouped_gemm/test_grouped_gemm_wgrad.py b/test/python/fe_api/grouped_gemm/test_grouped_gemm_wgrad.py
index c8952f1fc..678f41e11 100644
--- a/test/python/fe_api/grouped_gemm/test_grouped_gemm_wgrad.py
+++ b/test/python/fe_api/grouped_gemm/test_grouped_gemm_wgrad.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Tests for grouped GEMM wgrad FE API."""
import pytest
diff --git a/test/python/fe_api/grouped_gemm/test_grouped_gemm_wgrad_utils.py b/test/python/fe_api/grouped_gemm/test_grouped_gemm_wgrad_utils.py
index 09e829295..07151622e 100644
--- a/test/python/fe_api/grouped_gemm/test_grouped_gemm_wgrad_utils.py
+++ b/test/python/fe_api/grouped_gemm/test_grouped_gemm_wgrad_utils.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Utilities for grouped GEMM wgrad FE API tests."""
from typing import Any, Dict, Tuple
diff --git a/test/python/fe_api/norm/test_rmsnorm_rht_amax.py b/test/python/fe_api/norm/test_rmsnorm_rht_amax.py
index c00d04b02..50b8c4c95 100644
--- a/test/python/fe_api/norm/test_rmsnorm_rht_amax.py
+++ b/test/python/fe_api/norm/test_rmsnorm_rht_amax.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Tests for the FE-OSS RMSNorm + RHT + amax API."""
import math
diff --git a/test/python/fe_api/nsa/nsa_reference.py b/test/python/fe_api/nsa/nsa_reference.py
index 3e658d0d7..defe5cfcd 100644
--- a/test/python/fe_api/nsa/nsa_reference.py
+++ b/test/python/fe_api/nsa/nsa_reference.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Reference implementations for NSA (Native Sparse Attention) tests.
Contains CPU/GPU reference implementations for verification.
diff --git a/test/python/fe_api/nsa/nsa_utils.py b/test/python/fe_api/nsa/nsa_utils.py
index 6a31531e4..5f4d014bc 100644
--- a/test/python/fe_api/nsa/nsa_utils.py
+++ b/test/python/fe_api/nsa/nsa_utils.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Utilities for NSA (Native Sparse Attention) tests.
"""
diff --git a/test/python/fe_api/nsa/test_NSA_compression_attention.py b/test/python/fe_api/nsa/test_NSA_compression_attention.py
index aef525e88..3f13fde4b 100644
--- a/test/python/fe_api/nsa/test_NSA_compression_attention.py
+++ b/test/python/fe_api/nsa/test_NSA_compression_attention.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import torch
import pytest
diff --git a/test/python/fe_api/nsa/test_NSA_selection_attention.py b/test/python/fe_api/nsa/test_NSA_selection_attention.py
index 2817684fa..ce5f3dcda 100644
--- a/test/python/fe_api/nsa/test_NSA_selection_attention.py
+++ b/test/python/fe_api/nsa/test_NSA_selection_attention.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import torch
import pytest
diff --git a/test/python/fe_api/nsa/test_NSA_swa.py b/test/python/fe_api/nsa/test_NSA_swa.py
index d95223218..8025a78aa 100644
--- a/test/python/fe_api/nsa/test_NSA_swa.py
+++ b/test/python/fe_api/nsa/test_NSA_swa.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import torch
import cudnn
diff --git a/test/python/fe_api/nsa/test_NSA_topk_reduction.py b/test/python/fe_api/nsa/test_NSA_topk_reduction.py
index f7e09da9b..724c30bef 100644
--- a/test/python/fe_api/nsa/test_NSA_topk_reduction.py
+++ b/test/python/fe_api/nsa/test_NSA_topk_reduction.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import torch
import pytest
diff --git a/test/python/fe_api/sdpa/test_sdpa_bwd.py b/test/python/fe_api/sdpa/test_sdpa_bwd.py
index 26800ca2b..dca88cf56 100644
--- a/test/python/fe_api/sdpa/test_sdpa_bwd.py
+++ b/test/python/fe_api/sdpa/test_sdpa_bwd.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Tests for SDPA backward SM100 API and wrapper.
diff --git a/test/python/fe_api/sdpa/test_sdpa_bwd_utils.py b/test/python/fe_api/sdpa/test_sdpa_bwd_utils.py
index f990d6cc1..30d8f52cd 100644
--- a/test/python/fe_api/sdpa/test_sdpa_bwd_utils.py
+++ b/test/python/fe_api/sdpa/test_sdpa_bwd_utils.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Utilities for SDPA backward FE API tests.
"""
diff --git a/test/python/fe_api/sdpa/test_sdpa_fwd.py b/test/python/fe_api/sdpa/test_sdpa_fwd.py
index 339fd58ce..6587d44d4 100644
--- a/test/python/fe_api/sdpa/test_sdpa_fwd.py
+++ b/test/python/fe_api/sdpa/test_sdpa_fwd.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Tests for SDPA forward SM100 API and wrapper.
"""
diff --git a/test/python/fe_api/sdpa/test_sdpa_fwd_utils.py b/test/python/fe_api/sdpa/test_sdpa_fwd_utils.py
index b09f052f2..8717bdb2d 100644
--- a/test/python/fe_api/sdpa/test_sdpa_fwd_utils.py
+++ b/test/python/fe_api/sdpa/test_sdpa_fwd_utils.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Utilities for SDPA forward FE API tests.
"""
diff --git a/test/python/fe_api/test_api_base_logging.py b/test/python/fe_api/test_api_base_logging.py
index 9bfcb5bdb..1cd6a8262 100644
--- a/test/python/fe_api/test_api_base_logging.py
+++ b/test/python/fe_api/test_api_base_logging.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import logging
import pytest
diff --git a/test/python/fe_api/test_fe_api_utils.py b/test/python/fe_api/test_fe_api_utils.py
index 0bd8dbaaa..91de1bb5c 100644
--- a/test/python/fe_api/test_fe_api_utils.py
+++ b/test/python/fe_api/test_fe_api_utils.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import torch
import pytest
from test_low_precision_matmul import (
diff --git a/test/python/sdpa/blocked.py b/test/python/sdpa/blocked.py
index 43a01b6c7..50604155c 100644
--- a/test/python/sdpa/blocked.py
+++ b/test/python/sdpa/blocked.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
# Blocked tests configuration
# Format: "test_name": {"sms": ["SM_90", "SM_100"], "cudnn_versions": ["91100"]}
# - sms: List of GPU architectures to block on (e.g., "SM_90", "SM_100")
diff --git a/test/python/sdpa/fp16.py b/test/python/sdpa/fp16.py
index 2ef97058f..273380d71 100644
--- a/test/python/sdpa/fp16.py
+++ b/test/python/sdpa/fp16.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import cudnn
import pytest
import torch
diff --git a/test/python/sdpa/fp16_ref.py b/test/python/sdpa/fp16_ref.py
index 658f577cd..0f6bae405 100644
--- a/test/python/sdpa/fp16_ref.py
+++ b/test/python/sdpa/fp16_ref.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import torch
import math
import cudnn
diff --git a/test/python/sdpa/fp8.py b/test/python/sdpa/fp8.py
index 500ef4aaf..64cbc6ee2 100644
--- a/test/python/sdpa/fp8.py
+++ b/test/python/sdpa/fp8.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import cudnn
import pytest
import torch
diff --git a/test/python/sdpa/fp8_ref.py b/test/python/sdpa/fp8_ref.py
index 6376476e0..0d8281cf2 100644
--- a/test/python/sdpa/fp8_ref.py
+++ b/test/python/sdpa/fp8_ref.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import torch
import cudnn
diff --git a/test/python/sdpa/helpers.py b/test/python/sdpa/helpers.py
index cac0b8822..a901bd73e 100644
--- a/test/python/sdpa/helpers.py
+++ b/test/python/sdpa/helpers.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import cudnn
import torch
import math
diff --git a/test/python/sdpa/mxfp8.py b/test/python/sdpa/mxfp8.py
index c5fd42b29..49319c34b 100644
--- a/test/python/sdpa/mxfp8.py
+++ b/test/python/sdpa/mxfp8.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
# Try to import TransformerEngine (>= 2.12) for MXFP8 quantization
# NOTE: TE must be imported BEFORE cudnn to avoid library loading conflicts
from looseversion import LooseVersion
diff --git a/test/python/sdpa/mxfp8_ref.py b/test/python/sdpa/mxfp8_ref.py
index 15defff1f..aa2eafe0a 100644
--- a/test/python/sdpa/mxfp8_ref.py
+++ b/test/python/sdpa/mxfp8_ref.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import torch
import cudnn
diff --git a/test/python/sdpa/random_config.py b/test/python/sdpa/random_config.py
index adc661518..20305d6d6 100644
--- a/test/python/sdpa/random_config.py
+++ b/test/python/sdpa/random_config.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import random
import math
import torch
diff --git a/test/python/test_api_signature_parity.py b/test/python/test_api_signature_parity.py
index 9b7d9984d..84c6da244 100644
--- a/test/python/test_api_signature_parity.py
+++ b/test/python/test_api_signature_parity.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""The public ``cudnn.pygraph`` surface must be POSITIONALLY identical to the
classic API (callers pass name/handle/stride/... by position — pycudnnTest
does exactly that for the constructor). New parameters must be keyword-only so
diff --git a/test/python/test_apply_rope.py b/test/python/test_apply_rope.py
index 95fb12a1e..982879dd3 100644
--- a/test/python/test_apply_rope.py
+++ b/test/python/test_apply_rope.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import cudnn
import torch
import pytest
diff --git a/test/python/test_batchnorm.py b/test/python/test_batchnorm.py
index 0169104a7..d227de48f 100644
--- a/test/python/test_batchnorm.py
+++ b/test/python/test_batchnorm.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import cudnn
import pytest
import torch
diff --git a/test/python/test_block_scale_quantize.py b/test/python/test_block_scale_quantize.py
index e0d8f94a2..fe2f61edd 100644
--- a/test/python/test_block_scale_quantize.py
+++ b/test/python/test_block_scale_quantize.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Test suite for block_scale_quantize Python API.
Based on blackwell_nvfp4_mxfp8_block_scale_matmul.cpp
diff --git a/test/python/test_block_scale_quantize_dynamic_shape.py b/test/python/test_block_scale_quantize_dynamic_shape.py
index af74a1c0e..d3dc2287f 100644
--- a/test/python/test_block_scale_quantize_dynamic_shape.py
+++ b/test/python/test_block_scale_quantize_dynamic_shape.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Test suite for block_scale_quantize with dynamic shape overrides Python API.
Based on blackwell_nvfp4_mxfp8_block_scale_matmul.cpp
diff --git a/test/python/test_collect_env.py b/test/python/test_collect_env.py
index 416c16701..1f47d549a 100644
--- a/test/python/test_collect_env.py
+++ b/test/python/test_collect_env.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import json
import pytest
diff --git a/test/python/test_conv_bias.py b/test/python/test_conv_bias.py
index 67391a133..49040aa89 100644
--- a/test/python/test_conv_bias.py
+++ b/test/python/test_conv_bias.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import cudnn
import pytest
import torch
diff --git a/test/python/test_conv_fprop.py b/test/python/test_conv_fprop.py
index 6ac4c06b2..18ed1586a 100644
--- a/test/python/test_conv_fprop.py
+++ b/test/python/test_conv_fprop.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Test for conv fprop using tvm-ffi based execute API.
diff --git a/test/python/test_conv_fuzzer.py b/test/python/test_conv_fuzzer.py
index f61084488..d2d7b8e5a 100644
--- a/test/python/test_conv_fuzzer.py
+++ b/test/python/test_conv_fuzzer.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Convolution Fuzzer - Randomized stress testing for cuDNN convolution operations.
diff --git a/test/python/test_conv_genstats.py b/test/python/test_conv_genstats.py
index dd3d0a446..3918d1b31 100644
--- a/test/python/test_conv_genstats.py
+++ b/test/python/test_conv_genstats.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import cudnn
import pytest
import torch
diff --git a/test/python/test_conv_reduction.py b/test/python/test_conv_reduction.py
index 71872f4b7..72068620e 100644
--- a/test/python/test_conv_reduction.py
+++ b/test/python/test_conv_reduction.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import cudnn
import pytest
import torch
diff --git a/test/python/test_cudnn_sdpa_op.py b/test/python/test_cudnn_sdpa_op.py
index 1d05fd68c..26b1fdb16 100644
--- a/test/python/test_cudnn_sdpa_op.py
+++ b/test/python/test_cudnn_sdpa_op.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Tests for the cuDNN SDPA PyTorch custom operator (cudnn.experimental.ops.sdpa).
diff --git a/test/python/test_deviceless_aot_compilation.py b/test/python/test_deviceless_aot_compilation.py
index a5b7780cf..b1d19654e 100644
--- a/test/python/test_deviceless_aot_compilation.py
+++ b/test/python/test_deviceless_aot_compilation.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import cudnn
import pytest
import torch
diff --git a/test/python/test_engine_router.py b/test/python/test_engine_router.py
index ef23a68b0..13aa79b4c 100644
--- a/test/python/test_engine_router.py
+++ b/test/python/test_engine_router.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""CPU tests for the backend Router + BaseEngine contract.
These run without a GPU or cuDNN: they exercise pygraph -> Router -> ranked
diff --git a/test/python/test_flexible_sdpa.py b/test/python/test_flexible_sdpa.py
index 8165641df..9bb3c3a99 100644
--- a/test/python/test_flexible_sdpa.py
+++ b/test/python/test_flexible_sdpa.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import cudnn
import torch
import pytest
diff --git a/test/python/test_flexible_sdpa_bprop.py b/test/python/test_flexible_sdpa_bprop.py
index e091be72f..fbacbc202 100644
--- a/test/python/test_flexible_sdpa_bprop.py
+++ b/test/python/test_flexible_sdpa_bprop.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import cudnn
import torch
import pytest
diff --git a/test/python/test_graph_native.py b/test/python/test_graph_native.py
index 603eacb05..cf02f0b31 100644
--- a/test/python/test_graph_native.py
+++ b/test/python/test_graph_native.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Unit tests for Python-native graph representation."""
import pytest
diff --git a/test/python/test_instancenorm.py b/test/python/test_instancenorm.py
index 050968806..3667df513 100644
--- a/test/python/test_instancenorm.py
+++ b/test/python/test_instancenorm.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import cudnn
import pytest
import torch
diff --git a/test/python/test_kernel_cache.py b/test/python/test_kernel_cache.py
index bbf910c9e..96c880d59 100644
--- a/test/python/test_kernel_cache.py
+++ b/test/python/test_kernel_cache.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import cudnn
import pytest
import torch
diff --git a/test/python/test_layernorm.py b/test/python/test_layernorm.py
index f5ee920cc..0a81c45f7 100644
--- a/test/python/test_layernorm.py
+++ b/test/python/test_layernorm.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import cudnn
import pytest
import torch
diff --git a/test/python/test_low_precision_matmul.py b/test/python/test_low_precision_matmul.py
index 4733efb2b..0497493ab 100644
--- a/test/python/test_low_precision_matmul.py
+++ b/test/python/test_low_precision_matmul.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import cudnn
import itertools
import pytest
diff --git a/test/python/test_matmul_bias_relu.py b/test/python/test_matmul_bias_relu.py
index cbbb1f12e..6e0b182c0 100644
--- a/test/python/test_matmul_bias_relu.py
+++ b/test/python/test_matmul_bias_relu.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import cudnn
import itertools
import pytest
diff --git a/test/python/test_matmul_fuzzer.py b/test/python/test_matmul_fuzzer.py
index 098eb4b04..a1478f3f0 100644
--- a/test/python/test_matmul_fuzzer.py
+++ b/test/python/test_matmul_fuzzer.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Matmul Fuzzer - Randomized stress testing for cuDNN matmul operations.
diff --git a/test/python/test_mhas.py b/test/python/test_mhas.py
index 0fbd85b3c..0d13a4fee 100644
--- a/test/python/test_mhas.py
+++ b/test/python/test_mhas.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
This test harness allows for testing the various options of the attention operator. See example usage under "main" below.
diff --git a/test/python/test_mhas_v2.py b/test/python/test_mhas_v2.py
index 746cf2d1d..4bb7c7cab 100644
--- a/test/python/test_mhas_v2.py
+++ b/test/python/test_mhas_v2.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
This script tests cuDNN front-end attention.
The recommended way to run tests:
diff --git a/test/python/test_moe_grouped_matmul.py b/test/python/test_moe_grouped_matmul.py
index 95adead97..e07d80cd8 100644
--- a/test/python/test_moe_grouped_matmul.py
+++ b/test/python/test_moe_grouped_matmul.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Test suite for MoE Grouped Matmul and MoE Grouped Matmul Bwd Python API.
Based on samples/cpp/moe_grouped_matmul/moe_grouped_matmul.cpp
diff --git a/test/python/test_moe_grouped_matmul_op.py b/test/python/test_moe_grouped_matmul_op.py
index b7bf38b33..d2fadaead 100644
--- a/test/python/test_moe_grouped_matmul_op.py
+++ b/test/python/test_moe_grouped_matmul_op.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Correctness tests for MoE Grouped Matmul.
diff --git a/test/python/test_native_backend_lowering.py b/test/python/test_native_backend_lowering.py
index fc0a931f1..bc0edd4e5 100644
--- a/test/python/test_native_backend_lowering.py
+++ b/test/python/test_native_backend_lowering.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""GPU parity: pygraph builds natively, lowers to cuDNN, executes correctly.
Covers the native -> _lower_to_cpp -> cuDNN execute path (uid propagation, handle
diff --git a/test/python/test_norm_fuzzer.py b/test/python/test_norm_fuzzer.py
index 38d7fe738..2fd6186fe 100644
--- a/test/python/test_norm_fuzzer.py
+++ b/test/python/test_norm_fuzzer.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Norm Fuzzer - Randomized stress testing for cuDNN norm operations.
diff --git a/test/python/test_oss_rope.py b/test/python/test_oss_rope.py
index 416f50997..aa40f0800 100644
--- a/test/python/test_oss_rope.py
+++ b/test/python/test_oss_rope.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Test RoPE + SDPA via cuDNN Graph API.
diff --git a/test/python/test_rmsnorm.py b/test/python/test_rmsnorm.py
index 43d1997f7..a7a5b0ccd 100644
--- a/test/python/test_rmsnorm.py
+++ b/test/python/test_rmsnorm.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import cudnn
import pytest
import torch
diff --git a/test/python/test_sdpa_chunked_prefill.py b/test/python/test_sdpa_chunked_prefill.py
index 7f9c5f1b2..f180d9566 100644
--- a/test/python/test_sdpa_chunked_prefill.py
+++ b/test/python/test_sdpa_chunked_prefill.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Test for SDPA with chunked prefill using THD (Token-Head-Dimension) layout.
diff --git a/test/python/test_sdpa_edge_cases.py b/test/python/test_sdpa_edge_cases.py
index 234b23aea..b2a1b429c 100644
--- a/test/python/test_sdpa_edge_cases.py
+++ b/test/python/test_sdpa_edge_cases.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import cudnn
import pytest
import torch
diff --git a/test/python/test_sdpa_thd.py b/test/python/test_sdpa_thd.py
index a12a7d376..f2173c8f2 100644
--- a/test/python/test_sdpa_thd.py
+++ b/test/python/test_sdpa_thd.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Test for SDPA with dynamic shapes and THD (Token-Head-Dimension) layout.
diff --git a/test/python/test_sdpa_with_caching.py b/test/python/test_sdpa_with_caching.py
index c5640ee54..eeb19d511 100644
--- a/test/python/test_sdpa_with_caching.py
+++ b/test/python/test_sdpa_with_caching.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import pytest
from test_utils import torch_fork_set_rng
diff --git a/test/python/test_silu_and_mul.py b/test/python/test_silu_and_mul.py
index c6bc472cc..44dbe9e8b 100644
--- a/test/python/test_silu_and_mul.py
+++ b/test/python/test_silu_and_mul.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import cudnn
from looseversion import LooseVersion
import pytest
diff --git a/test/python/test_slice.py b/test/python/test_slice.py
index 745d91ede..e3be83114 100644
--- a/test/python/test_slice.py
+++ b/test/python/test_slice.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import cudnn
import itertools
import pytest
diff --git a/test/python/test_sm100_prefill_oss_engine.py b/test/python/test_sm100_prefill_oss_engine.py
index 3d5820afd..305c7d92c 100644
--- a/test/python/test_sm100_prefill_oss_engine.py
+++ b/test/python/test_sm100_prefill_oss_engine.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Test SM100 Prefill SDPA: cuDNN Graph API (HeurMode A) vs OSS Engine (HeurMode OPENSOURCE).
diff --git a/test/python/test_sm100_rms_norm_silu_graph_api.py b/test/python/test_sm100_rms_norm_silu_graph_api.py
index 3aa90ffe9..5afe27321 100644
--- a/test/python/test_sm100_rms_norm_silu_graph_api.py
+++ b/test/python/test_sm100_rms_norm_silu_graph_api.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Test SM100 RmsNorm+SiLU: cuDNN Graph API with OPENSOURCE heur_mode.
diff --git a/test/python/test_sm90_prefill_oss_engine.py b/test/python/test_sm90_prefill_oss_engine.py
index b4df206ec..b06be1620 100644
--- a/test/python/test_sm90_prefill_oss_engine.py
+++ b/test/python/test_sm90_prefill_oss_engine.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""
Test SM90 Prefill SDPA: cuDNN Graph API (HeurMode A) vs OSS Engine (HeurMode OPENSOURCE).
diff --git a/test/python/test_utils.py b/test/python/test_utils.py
index 3af0975b2..116f00900 100644
--- a/test/python/test_utils.py
+++ b/test/python/test_utils.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import torch
import functools
diff --git a/test/python/test_wgrads.py b/test/python/test_wgrads.py
index 2d1a74b50..0b132245c 100644
--- a/test/python/test_wgrads.py
+++ b/test/python/test_wgrads.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import cudnn
import pytest
import torch
diff --git a/test/python/test_yarn_rope.py b/test/python/test_yarn_rope.py
index 4d02b75fc..5774a612b 100644
--- a/test/python/test_yarn_rope.py
+++ b/test/python/test_yarn_rope.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Tests for YARN RoPE helper and end-to-end RoPE+SDPA fusion."""
import math
diff --git a/tools/cudnn_repro/cudnn_repro/__init__.py b/tools/cudnn_repro/cudnn_repro/__init__.py
index 63aadb44c..cbcf779c7 100644
--- a/tools/cudnn_repro/cudnn_repro/__init__.py
+++ b/tools/cudnn_repro/cudnn_repro/__init__.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""cuDNN SDPA reproducer tool."""
diff --git a/tools/cudnn_repro/cudnn_repro/__main__.py b/tools/cudnn_repro/cudnn_repro/__main__.py
index 4e844ed65..176f19ad6 100644
--- a/tools/cudnn_repro/cudnn_repro/__main__.py
+++ b/tools/cudnn_repro/cudnn_repro/__main__.py
@@ -1,4 +1,7 @@
#!/usr/bin/env python3
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Generate pytest SDPA repro commands from cuDNN Frontend logs.
This tool processes cuDNN frontend log files and generates pytest commands
diff --git a/tools/cudnn_repro/cudnn_repro/log_parser.py b/tools/cudnn_repro/cudnn_repro/log_parser.py
index 63cb75a94..c3aff4bcb 100644
--- a/tools/cudnn_repro/cudnn_repro/log_parser.py
+++ b/tools/cudnn_repro/cudnn_repro/log_parser.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Log reading and JSON context entry extraction."""
import copy
diff --git a/tools/cudnn_repro/cudnn_repro/operations.py b/tools/cudnn_repro/cudnn_repro/operations.py
index a3c2de6a6..256734ac5 100644
--- a/tools/cudnn_repro/cudnn_repro/operations.py
+++ b/tools/cudnn_repro/cudnn_repro/operations.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Operation detection and dispatch for repro generation."""
from . import sdpa_bwd
diff --git a/tools/cudnn_repro/cudnn_repro/repro_command.py b/tools/cudnn_repro/cudnn_repro/repro_command.py
index 8d3a07730..4b0c98ef4 100644
--- a/tools/cudnn_repro/cudnn_repro/repro_command.py
+++ b/tools/cudnn_repro/cudnn_repro/repro_command.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Shared helpers for rendering pytest repro commands."""
diff --git a/tools/cudnn_repro/cudnn_repro/sdpa_bwd.py b/tools/cudnn_repro/cudnn_repro/sdpa_bwd.py
index 6c45bd799..3b691f6ea 100644
--- a/tools/cudnn_repro/cudnn_repro/sdpa_bwd.py
+++ b/tools/cudnn_repro/cudnn_repro/sdpa_bwd.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Extract and annotate SDPA backward config from JSON payload."""
import json
diff --git a/tools/cudnn_repro/cudnn_repro/sdpa_fp8_bwd.py b/tools/cudnn_repro/cudnn_repro/sdpa_fp8_bwd.py
index 1162a2c76..cb65e2129 100644
--- a/tools/cudnn_repro/cudnn_repro/sdpa_fp8_bwd.py
+++ b/tools/cudnn_repro/cudnn_repro/sdpa_fp8_bwd.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Extract and annotate SDPA FP8 backward config from JSON payload."""
import json
diff --git a/tools/cudnn_repro/cudnn_repro/sdpa_fp8_fwd.py b/tools/cudnn_repro/cudnn_repro/sdpa_fp8_fwd.py
index 371fbc878..fbe262486 100644
--- a/tools/cudnn_repro/cudnn_repro/sdpa_fp8_fwd.py
+++ b/tools/cudnn_repro/cudnn_repro/sdpa_fp8_fwd.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Extract and annotate SDPA FP8 forward config from JSON payload."""
import json
diff --git a/tools/cudnn_repro/cudnn_repro/sdpa_fwd.py b/tools/cudnn_repro/cudnn_repro/sdpa_fwd.py
index 1b4e61f44..eb69a87cb 100644
--- a/tools/cudnn_repro/cudnn_repro/sdpa_fwd.py
+++ b/tools/cudnn_repro/cudnn_repro/sdpa_fwd.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Extract and annotate SDPA forward config from JSON payload."""
import json
diff --git a/tools/cudnn_repro/cudnn_repro/utils.py b/tools/cudnn_repro/cudnn_repro/utils.py
index 6c348ca5e..f259d2db1 100644
--- a/tools/cudnn_repro/cudnn_repro/utils.py
+++ b/tools/cudnn_repro/cudnn_repro/utils.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
"""Shared utility functions for cuDNN repro tool."""
import hashlib
diff --git a/tools/cudnn_repro/tests/__init__.py b/tools/cudnn_repro/tests/__init__.py
index e69de29bb..52a7a9daf 100644
--- a/tools/cudnn_repro/tests/__init__.py
+++ b/tools/cudnn_repro/tests/__init__.py
@@ -0,0 +1,2 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
diff --git a/tools/cudnn_repro/tests/helpers.py b/tools/cudnn_repro/tests/helpers.py
index b92a7007a..8ce38faf7 100644
--- a/tools/cudnn_repro/tests/helpers.py
+++ b/tools/cudnn_repro/tests/helpers.py
@@ -1,2 +1,5 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
def tensor_list(tensors):
return [entry for _, entry in sorted(tensors.items(), key=lambda item: int(item[0]))]
diff --git a/tools/cudnn_repro/tests/test_cudnn_repro_bwd.py b/tools/cudnn_repro/tests/test_cudnn_repro_bwd.py
index 5e8ea78c6..c3aab3af3 100644
--- a/tools/cudnn_repro/tests/test_cudnn_repro_bwd.py
+++ b/tools/cudnn_repro/tests/test_cudnn_repro_bwd.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import cudnn_repro.repro_command as repro_command
import cudnn_repro.sdpa_bwd as sdpa_bwd
diff --git a/tools/cudnn_repro/tests/test_cudnn_repro_cli.py b/tools/cudnn_repro/tests/test_cudnn_repro_cli.py
index 1833cfa13..61b0138ec 100644
--- a/tools/cudnn_repro/tests/test_cudnn_repro_cli.py
+++ b/tools/cudnn_repro/tests/test_cudnn_repro_cli.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import json
import os
import subprocess
diff --git a/tools/cudnn_repro/tests/test_cudnn_repro_closed_loop.py b/tools/cudnn_repro/tests/test_cudnn_repro_closed_loop.py
index 69a02020a..9cd6253d6 100644
--- a/tools/cudnn_repro/tests/test_cudnn_repro_closed_loop.py
+++ b/tools/cudnn_repro/tests/test_cudnn_repro_closed_loop.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import json
import os
import shlex
diff --git a/tools/cudnn_repro/tests/test_cudnn_repro_fp8.py b/tools/cudnn_repro/tests/test_cudnn_repro_fp8.py
index febaab185..347ac31dc 100644
--- a/tools/cudnn_repro/tests/test_cudnn_repro_fp8.py
+++ b/tools/cudnn_repro/tests/test_cudnn_repro_fp8.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import pytest
import cudnn_repro.operations as operations
diff --git a/tools/cudnn_repro/tests/test_cudnn_repro_fp8_closed_loop.py b/tools/cudnn_repro/tests/test_cudnn_repro_fp8_closed_loop.py
index a97823664..5f021e7bf 100644
--- a/tools/cudnn_repro/tests/test_cudnn_repro_fp8_closed_loop.py
+++ b/tools/cudnn_repro/tests/test_cudnn_repro_fp8_closed_loop.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import os
import pytest
diff --git a/tools/cudnn_repro/tests/test_cudnn_repro_log_parser.py b/tools/cudnn_repro/tests/test_cudnn_repro_log_parser.py
index a0e592474..fd025bd3e 100644
--- a/tools/cudnn_repro/tests/test_cudnn_repro_log_parser.py
+++ b/tools/cudnn_repro/tests/test_cudnn_repro_log_parser.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import json
import cudnn_repro.log_parser as log_parser
diff --git a/tools/cudnn_repro/tests/test_cudnn_repro_mxfp8_closed_loop.py b/tools/cudnn_repro/tests/test_cudnn_repro_mxfp8_closed_loop.py
index 1312c7aa3..f2e972558 100644
--- a/tools/cudnn_repro/tests/test_cudnn_repro_mxfp8_closed_loop.py
+++ b/tools/cudnn_repro/tests/test_cudnn_repro_mxfp8_closed_loop.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import pytest
from looseversion import LooseVersion
diff --git a/tools/cudnn_repro/tests/test_cudnn_repro_schema.py b/tools/cudnn_repro/tests/test_cudnn_repro_schema.py
index 2d57be4fa..7ba08feb4 100644
--- a/tools/cudnn_repro/tests/test_cudnn_repro_schema.py
+++ b/tools/cudnn_repro/tests/test_cudnn_repro_schema.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import pytest
import cudnn_repro.operations as operations
diff --git a/tools/cudnn_repro/tests/test_cudnn_repro_utils.py b/tools/cudnn_repro/tests/test_cudnn_repro_utils.py
index f4fa5503b..a98fc2a8f 100644
--- a/tools/cudnn_repro/tests/test_cudnn_repro_utils.py
+++ b/tools/cudnn_repro/tests/test_cudnn_repro_utils.py
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
from cudnn_repro.utils import flatten_pass_by_value