License#

Unless otherwise noted, the code in this repository is licensed under the Apache 2.0 license.

Known exceptions#

License headers#

We use REUSE to enforce SPDX license headers on source files. Pre-commit runs reuse lint-file on changed files (e.g. .py, .cpp, .md, .yaml):

  1. Required fields: Each file must have SPDX-FileCopyrightText and SPDX-License-Identifier.

  2. License: SPDX-License-Identifier must be Apache-2.0 (full text in LICENSES/Apache-2.0.txt).

Example header (for Python files):

# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

You can also run reuse spdx -o project.spdx to generate an SPDX report for the project.