Skip to content

Commit d765fb7

Browse files
committed
rename cuda.py to cuda.core
1 parent 7770a63 commit d765fb7

24 files changed

+49
-49
lines changed

cuda_core/MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
recursive-include cuda/core *.pyx *.pxd
File renamed without changes.

cuda_core/cuda/core/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED.
2+
#
3+
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
4+
5+
from cuda.core._compiler import Compiler
6+
from cuda.core._device import Device
7+
from cuda.core._event import EventOptions
8+
from cuda.core._launcher import LaunchConfig, launch
9+
from cuda.core._stream import Stream, StreamOptions
10+
from cuda.core._version import __version__
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
44

55
from cuda import nvrtc
6-
from cuda.py._utils import handle_return
7-
from cuda.py._module import Module
6+
from cuda.core._utils import handle_return
7+
from cuda.core._module import Module
88

99

1010
class Compiler:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from dataclasses import dataclass
66

77
from cuda import cuda, cudart
8-
from cuda.py._utils import handle_return
8+
from cuda.core._utils import handle_return
99

1010

1111
@dataclass
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
import warnings
88

99
from cuda import cuda, cudart
10-
from cuda.py._utils import handle_return, ComputeCapability, CUDAError, \
10+
from cuda.core._utils import handle_return, ComputeCapability, CUDAError, \
1111
precondition
12-
from cuda.py._context import Context, ContextOptions
13-
from cuda.py._memory import _DefaultAsyncMempool, Buffer, MemoryResource
14-
from cuda.py._stream import default_stream, Stream, StreamOptions
12+
from cuda.core._context import Context, ContextOptions
13+
from cuda.core._memory import _DefaultAsyncMempool, Buffer, MemoryResource
14+
from cuda.core._stream import default_stream, Stream, StreamOptions
1515

1616

1717
_tls = threading.local()
@@ -125,7 +125,7 @@ def use(self, ctx: Context=None) -> Union[Context, None]:
125125
Entry point of this object. Users always start a code by
126126
calling this method, e.g.
127127
128-
>>> from cuda.py import Device
128+
>>> from cuda.core import Device
129129
>>> dev0 = Device(0)
130130
>>> dev0.use()
131131
>>> # ... do work on device 0 ...
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
from typing import Optional
77

88
from cuda import cuda
9-
from cuda.py._utils import check_or_create_options
10-
from cuda.py._utils import CUDAError
11-
from cuda.py._utils import handle_return
9+
from cuda.core._utils import check_or_create_options
10+
from cuda.core._utils import CUDAError
11+
from cuda.core._utils import handle_return
1212

1313

1414
@dataclass

0 commit comments

Comments
 (0)