Skip to content

Commit 9079c8c

Browse files
authored
cuda.core v0.5.0 doc final pass (NVIDIA#1401)
* fix warnings and hyperlinks * mention experimental namespace * remove win32 from VirtualMemoryHandleTypeT * fix typo
1 parent d407eb4 commit 9079c8c

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

cuda_core/cuda/core/_memory/_virtual_memory_resource.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
__all__ = ["VirtualMemoryResourceOptions", "VirtualMemoryResource"]
2626

27-
VirtualMemoryHandleTypeT = Union[Literal["posix_fd", "generic", "win32", "win32_kmt", "fabric"], None]
27+
VirtualMemoryHandleTypeT = Union[Literal["posix_fd", "generic", "win32_kmt", "fabric"], None]
2828
VirtualMemoryLocationTypeT = Literal["device", "host", "host_numa", "host_numa_current"]
2929
VirtualMemoryGranularityT = Literal["minimum", "recommended"]
3030
VirtualMemoryAccessTypeT = Union[Literal["rw", "r"], None]
@@ -81,7 +81,6 @@ class VirtualMemoryResourceOptions:
8181
_handle_types = {
8282
None: _h.CU_MEM_HANDLE_TYPE_NONE,
8383
"posix_fd": _h.CU_MEM_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR,
84-
"win32": _h.CU_MEM_HANDLE_TYPE_WIN32,
8584
"win32_kmt": _h.CU_MEM_HANDLE_TYPE_WIN32_KMT,
8685
"fabric": _h.CU_MEM_HANDLE_TYPE_FABRIC,
8786
}

cuda_core/docs/source/api_private.rst

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,15 @@ CUDA runtime
1616
.. autosummary::
1717
:toctree: generated/
1818

19-
_memory.PyCapsule
20-
_memory.DevicePointerT
21-
_memory.VirtualMemoryAllocationTypeT
22-
_memory.VirtualMemoryLocationTypeT
23-
_memory.VirtualMemoryGranularityT
24-
_memory.VirtualMemoryAccessTypeT
25-
_memory.VirtualMemoryHandleTypeT
19+
_memory._buffer.DevicePointerT
20+
_memory._virtual_memory_resource.VirtualMemoryAllocationTypeT
21+
_memory._virtual_memory_resource.VirtualMemoryLocationTypeT
22+
_memory._virtual_memory_resource.VirtualMemoryGranularityT
23+
_memory._virtual_memory_resource.VirtualMemoryAccessTypeT
24+
_memory._virtual_memory_resource.VirtualMemoryHandleTypeT
2625
_device.DeviceProperties
27-
_memory.IPCAllocationHandle
28-
_memory.IPCBufferDescriptor
26+
_memory._ipc.IPCAllocationHandle
27+
_memory._ipc.IPCBufferDescriptor
2928
_module.KernelAttributes
3029
_module.KernelOccupancy
3130
_module.ParamInfo

cuda_core/docs/source/release/0.5.0-notes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ Breaking Changes
2121

2222
The support for setting :attr:`VirtualMemoryResourceOptions.handle_type` to ``"win32"`` is removed. Please reach out to us on GitHub if you have a use case.
2323

24+
All public APIs accessible under the ``cuda.core.experimental`` namespace are now moved to the top-level ``cuda.core`` namespace. For example, ``cuda.core.experimental.Device`` is now accessible as :class:`cuda.core.Device`. The ``cuda.core.experimental`` namespace is still retained for backward compatibility, but is considered deprecated and will be removed by ``cuda.core`` v1.0.0.
25+
2426
The following APIs have been deprecated and will be removed in 0.6.0:
2527

2628
- ``cuda.core.experimental.system.driver_version`` has been replaced with

0 commit comments

Comments
 (0)