Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cuda_core/cuda/core/_include/layout.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES.
// All rights reserved.
//
// SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
// SPDX-License-Identifier: Apache-2.0

#ifndef CUDA_CORE_LAYOUT_HPP
#define CUDA_CORE_LAYOUT_HPP
Expand Down
2 changes: 1 addition & 1 deletion cuda_core/cuda/core/_include/utility.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
//
// SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
// SPDX-License-Identifier: Apache-2.0

#pragma once

Expand Down
2 changes: 1 addition & 1 deletion cuda_core/cuda/core/_utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
# SPDX-License-Identifier: Apache-2.0
2 changes: 1 addition & 1 deletion cuda_core/cuda/core/_utils/clear_error_support.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
# SPDX-License-Identifier: Apache-2.0


def assert_type(obj, expected_type):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
# SPDX-License-Identifier: Apache-2.0

from cuda.bindings import driver
from cuda.core._utils.enum_explanations_helpers import get_best_available_explanations
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
# SPDX-License-Identifier: Apache-2.0

# CUDA Toolkit v13.1.1
_FALLBACK_EXPLANATIONS = {
Expand Down
2 changes: 1 addition & 1 deletion cuda_core/cuda/core/_utils/enum_explanations_helpers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
# SPDX-License-Identifier: Apache-2.0

"""Internal support for error-enum explanations.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
# SPDX-License-Identifier: Apache-2.0

from cuda.bindings import runtime
from cuda.core._utils.enum_explanations_helpers import get_best_available_explanations
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
# SPDX-License-Identifier: Apache-2.0

# CUDA Toolkit v13.1.1
_FALLBACK_EXPLANATIONS = {
Expand Down
2 changes: 1 addition & 1 deletion cuda_core/pytest.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
# SPDX-License-Identifier: Apache-2.0

[pytest]
addopts = --showlocals
Expand Down
2 changes: 1 addition & 1 deletion cuda_core/tests/cython/test_cython.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SPDX-FileCopyrightText: Copyright (c) 2021-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
# SPDX-License-Identifier: Apache-2.0

import functools
import importlib
Expand Down
2 changes: 1 addition & 1 deletion cuda_core/tests/cython/test_get_cuda_native_handle.pyx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
# SPDX-License-Identifier: Apache-2.0

# distutils: language = c++
# distutils: extra_compile_args = -std=c++17
Expand Down
2 changes: 1 addition & 1 deletion cuda_core/tests/graph/test_device_launch.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
# SPDX-License-Identifier: Apache-2.0

"""Tests for device-side graph launch (GPU kernel launching a CUDA graph)."""

Expand Down
2 changes: 1 addition & 1 deletion cuda_core/tests/graph/test_graph_builder.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
# SPDX-License-Identifier: Apache-2.0

"""GraphBuilder stream capture tests."""

Expand Down
2 changes: 1 addition & 1 deletion cuda_core/tests/graph/test_graph_builder_conditional.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
# SPDX-License-Identifier: Apache-2.0

"""Tests for GraphBuilder conditional node capture (if, if-else, switch, while)."""

Expand Down
2 changes: 1 addition & 1 deletion cuda_core/tests/graph/test_graph_memory_resource.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
# SPDX-License-Identifier: Apache-2.0

"""Tests for GraphMemoryResource allocation and attributes during graph capture."""

Expand Down
2 changes: 1 addition & 1 deletion cuda_core/tests/graph/test_graph_update.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
# SPDX-License-Identifier: Apache-2.0

"""Tests for whole-graph update (Graph.update)."""

Expand Down
2 changes: 1 addition & 1 deletion cuda_core/tests/graph/test_graphdef.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
# SPDX-License-Identifier: Apache-2.0

"""Tests for GraphDef topology, node types, instantiation, and execution."""

Expand Down
2 changes: 1 addition & 1 deletion cuda_core/tests/graph/test_graphdef_errors.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
# SPDX-License-Identifier: Apache-2.0

"""Tests for GraphDef input validation, error handling, and edge cases."""

Expand Down
2 changes: 1 addition & 1 deletion cuda_core/tests/graph/test_graphdef_integration.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
# SPDX-License-Identifier: Apache-2.0

"""End-to-end integration tests exercising all GraphDef node types in realistic scenarios."""

Expand Down
2 changes: 1 addition & 1 deletion cuda_core/tests/graph/test_graphdef_lifetime.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
# SPDX-License-Identifier: Apache-2.0

"""Tests for GraphDef resource lifetime management and RAII correctness."""

Expand Down
2 changes: 1 addition & 1 deletion cuda_core/tests/graph/test_graphdef_mutation.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
# SPDX-License-Identifier: Apache-2.0

"""Tests for mutating a graph definition (edge changes, node removal)."""

Expand Down
2 changes: 1 addition & 1 deletion cuda_core/tests/graph/test_options.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
# SPDX-License-Identifier: Apache-2.0

"""Graph options and build mode tests."""

Expand Down
2 changes: 1 addition & 1 deletion cuda_core/tests/helpers/collection_interface_testers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
# SPDX-License-Identifier: Apache-2.0

"""Reusable helpers to verify collections.abc protocol conformance."""

Expand Down
2 changes: 1 addition & 1 deletion cuda_core/tests/helpers/graph_kernels.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
# SPDX-License-Identifier: Apache-2.0

"""Shared kernel compilation helpers for graph tests."""

Expand Down
2 changes: 1 addition & 1 deletion cuda_core/tests/helpers/marks.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
# SPDX-License-Identifier: Apache-2.0

"""Reusable pytest marks for cuda_core tests."""

Expand Down
2 changes: 1 addition & 1 deletion cuda_core/tests/test_cuda_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
# SPDX-License-Identifier: Apache-2.0

import dataclasses

Expand Down
2 changes: 1 addition & 1 deletion cuda_core/tests/test_helpers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
# SPDX-License-Identifier: Apache-2.0

import time

Expand Down
2 changes: 1 addition & 1 deletion cuda_core/tests/test_linker.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SPDX-FileCopyrightText: Copyright (c) 2024-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
# SPDX-License-Identifier: Apache-2.0

import pytest

Expand Down
2 changes: 1 addition & 1 deletion cuda_core/tests/test_optional_dependency_imports.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
# SPDX-License-Identifier: Apache-2.0

import pytest

Expand Down
2 changes: 1 addition & 1 deletion cuda_core/tests/test_program.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SPDX-FileCopyrightText: Copyright (c) 2024-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
# SPDX-License-Identifier: Apache-2.0

import contextlib
import re
Expand Down
2 changes: 1 addition & 1 deletion cuda_core/tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SPDX-FileCopyrightText: Copyright (c) 2024-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
# SPDX-License-Identifier: Apache-2.0

import ctypes
import math
Expand Down
2 changes: 1 addition & 1 deletion cuda_core/tests/test_utils_enum_explanations_helpers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
# SPDX-License-Identifier: Apache-2.0

import importlib
import sys
Expand Down
Loading
Loading