Skip to content

Commit 0008aca

Browse files
style: fix pre-commit failures for PR NVIDIA#2637
Sort imports in test_launcher.py (ruff I001) and regenerate _launch_config.pyi via stubgen-pyx after LaunchConfig changes. Co-authored-by: Cursor <[email protected]> Signed-off-by: Omar Atie <[email protected]>
1 parent b1abc19 commit 0008aca

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

‎cuda_core/cuda/core/_launch_config.pyi‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ from __future__ import annotations
44

55
from typing import Any
66

7-
from cuda.core.typing import SynchronizationPolicyType
8-
97

108
class LaunchConfig:
119
"""Customizable launch options.
@@ -46,7 +44,7 @@ class LaunchConfig:
4644
kernel. Maps to ``CU_LAUNCH_ATTRIBUTE_SYNCHRONIZATION_POLICY``.
4745
"""
4846

49-
def __init__(self, grid: int | tuple[int, ...] | None=None, cluster: int | tuple[int, ...] | None=None, block: int | tuple[int, ...] | None=None, shmem_size: int | None=None, is_cooperative: bool=False, programmatic_stream_serialization: bool=False, synchronization_policy: SynchronizationPolicyType | int | None=None) -> None:
47+
def __init__(self, grid: int | tuple[int, ...] | None=None, cluster: int | tuple[int, ...] | None=None, block: int | tuple[int, ...] | None=None, shmem_size: int | None=None, is_cooperative: bool=False, programmatic_stream_serialization: bool=False, synchronization_policy: object=None) -> None:
5048
"""Initialize LaunchConfig with validation.
5149
5250
Parameters

‎cuda_core/tests/test_launcher.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
cp = None
1414
import numpy as np
1515
import pytest
16-
from cuda.bindings import driver
1716
from conftest import skipif_need_cuda_headers
17+
from cuda.bindings import driver
1818

1919
from cuda.core import (
2020
Device,

0 commit comments

Comments
 (0)