From 361c3400cad2fe20f55da4ecf058d858f876e058 Mon Sep 17 00:00:00 2001 From: Leo Fang Date: Tue, 1 Jul 2025 23:38:48 +0000 Subject: [PATCH 1/4] move public types out of api_private.rst --- cuda_core/cuda/core/experimental/__init__.py | 2 +- cuda_core/docs/source/api.rst | 1 + cuda_core/docs/source/api_private.rst | 11 ----------- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/cuda_core/cuda/core/experimental/__init__.py b/cuda_core/cuda/core/experimental/__init__.py index f83e0e223..3b0be1729 100644 --- a/cuda_core/cuda/core/experimental/__init__.py +++ b/cuda_core/cuda/core/experimental/__init__.py @@ -15,7 +15,7 @@ from cuda.core.experimental._launcher import launch from cuda.core.experimental._linker import Linker, LinkerOptions from cuda.core.experimental._memory import Buffer, DeviceMemoryResource, LegacyPinnedMemoryResource, MemoryResource -from cuda.core.experimental._module import ObjectCode +from cuda.core.experimental._module import Kernel, ObjectCode from cuda.core.experimental._program import Program, ProgramOptions from cuda.core.experimental._stream import Stream, StreamOptions from cuda.core.experimental._system import System diff --git a/cuda_core/docs/source/api.rst b/cuda_core/docs/source/api.rst index 01501c52f..e32b5686d 100644 --- a/cuda_core/docs/source/api.rst +++ b/cuda_core/docs/source/api.rst @@ -45,6 +45,7 @@ CUDA compilation toolchain Program Linker ObjectCode + Kernel :template: dataclass.rst diff --git a/cuda_core/docs/source/api_private.rst b/cuda_core/docs/source/api_private.rst index 8cc27c83a..e454940dc 100644 --- a/cuda_core/docs/source/api_private.rst +++ b/cuda_core/docs/source/api_private.rst @@ -15,10 +15,8 @@ CUDA runtime .. autosummary:: :toctree: generated/ - _stream.Stream _memory.PyCapsule _memory.DevicePointerT - _event.Event _device.DeviceProperties _module.KernelAttributes _module.KernelOccupancy @@ -26,15 +24,6 @@ CUDA runtime _module.MaxPotentialBlockSizeOccupancyResult -CUDA compilation toolchain --------------------------- - -.. autosummary:: - :toctree: generated/ - - _module.Kernel - - CUDA protocols -------------- From d7aa4096a47c13fb795575386ff717d0625ae754 Mon Sep 17 00:00:00 2001 From: Leo Fang Date: Tue, 1 Jul 2025 23:39:36 +0000 Subject: [PATCH 2/4] bump version --- cuda_core/cuda/core/_version.py | 2 +- cuda_core/docs/versions.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cuda_core/cuda/core/_version.py b/cuda_core/cuda/core/_version.py index 156337ac8..ef8461a36 100644 --- a/cuda_core/cuda/core/_version.py +++ b/cuda_core/cuda/core/_version.py @@ -2,4 +2,4 @@ # # SPDX-License-Identifier: Apache-2.0 -__version__ = "0.3.0" +__version__ = "0.3.1" diff --git a/cuda_core/docs/versions.json b/cuda_core/docs/versions.json index 320f58217..c4485906b 100644 --- a/cuda_core/docs/versions.json +++ b/cuda_core/docs/versions.json @@ -1,5 +1,6 @@ { "latest" : "latest", + "0.3.1" : "0.3.1", "0.3.0" : "0.3.0", "0.2.0" : "0.2.0", "0.1.1" : "0.1.1", From b2d74033ea5c13fc69cf6944b7a8a940bb523d60 Mon Sep 17 00:00:00 2001 From: Leo Fang Date: Tue, 1 Jul 2025 23:55:20 +0000 Subject: [PATCH 3/4] add release note --- cuda_core/docs/source/release.rst | 1 + cuda_core/docs/source/release/0.3.1-notes.rst | 44 +++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 cuda_core/docs/source/release/0.3.1-notes.rst diff --git a/cuda_core/docs/source/release.rst b/cuda_core/docs/source/release.rst index 3649b03a5..9cbaa5bbe 100644 --- a/cuda_core/docs/source/release.rst +++ b/cuda_core/docs/source/release.rst @@ -6,6 +6,7 @@ Release Notes .. toctree:: :maxdepth: 3 + release/0.3.1-notes release/0.3.0-notes release/0.2.0-notes release/0.1.1-notes diff --git a/cuda_core/docs/source/release/0.3.1-notes.rst b/cuda_core/docs/source/release/0.3.1-notes.rst new file mode 100644 index 000000000..1873cda0a --- /dev/null +++ b/cuda_core/docs/source/release/0.3.1-notes.rst @@ -0,0 +1,44 @@ +.. SPDX-License-Identifier: Apache-2.0 + +.. currentmodule:: cuda.core.experimental + +``cuda.core`` 0.3.1 Release Notes +================================= + +Released on July 2, 2025 + + +Highlights +---------- + +- Add a :doc:`Getting Started ` page. +- :class:`Stream` and :class:`Event` creation and some operations are made faster. + + +Breaking Changes +---------------- + +None. + + +New features +------------ + +None. + + +New examples +------------ + +- Add a `CUDA graph `_ example. +- Add a `memory resource `_ example. + + +Fixes and enhancements +---------------------- + +- Fix installing optional dependencies ``cuda-core[cu11]`` and ``cuda-core[cu12]`` not including all needed packages. +- :class:`Buffer` allocated from a :class:`LegacyPinnedMemoryResource` can be passed as a kernel launch argument. +- Fix the handling for insufficient driver versions when querying :attr:`Kernel.num_arguments` and `:attr:`Kernel.arguments_info`. +- Fix WSL detection in the test suite. +- Improve compatibility with newer driver versions. From 037efdbec06ee72bcb34b3276631ae3fe341da7f Mon Sep 17 00:00:00 2001 From: Leo Fang Date: Wed, 2 Jul 2025 11:11:59 -0400 Subject: [PATCH 4/4] fix typo --- cuda_core/docs/source/release/0.3.1-notes.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cuda_core/docs/source/release/0.3.1-notes.rst b/cuda_core/docs/source/release/0.3.1-notes.rst index 1873cda0a..7a1ed9a93 100644 --- a/cuda_core/docs/source/release/0.3.1-notes.rst +++ b/cuda_core/docs/source/release/0.3.1-notes.rst @@ -39,6 +39,6 @@ Fixes and enhancements - Fix installing optional dependencies ``cuda-core[cu11]`` and ``cuda-core[cu12]`` not including all needed packages. - :class:`Buffer` allocated from a :class:`LegacyPinnedMemoryResource` can be passed as a kernel launch argument. -- Fix the handling for insufficient driver versions when querying :attr:`Kernel.num_arguments` and `:attr:`Kernel.arguments_info`. +- Fix the handling for insufficient driver versions when querying :attr:`Kernel.num_arguments` and :attr:`Kernel.arguments_info`. - Fix WSL detection in the test suite. - Improve compatibility with newer driver versions.