From 9da82707353af7845350481b12adb0dbb0e36590 Mon Sep 17 00:00:00 2001 From: XXXXRT666 <157766680+XXXXRT666@users.noreply.github.com> Date: Mon, 6 Oct 2025 05:31:43 +0100 Subject: [PATCH 1/4] Fix Wrong Index in Docs --- cuda_core/docs/source/getting-started.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cuda_core/docs/source/getting-started.rst b/cuda_core/docs/source/getting-started.rst index 47f8d193a..2bc7c6156 100644 --- a/cuda_core/docs/source/getting-started.rst +++ b/cuda_core/docs/source/getting-started.rst @@ -47,7 +47,7 @@ First, we define a string containing the CUDA C++ kernel. Note that this is a te size_t N) { const unsigned int tid = threadIdx.x + blockIdx.x * blockDim.x; for (size_t i=tid; i Date: Mon, 6 Oct 2025 14:58:22 +0100 Subject: [PATCH 2/4] Fixed all C[tid] = A[tid] + B[tid] --- cuda_core/docs/source/release/0.X.Y-notes.rst | 1 + cuda_core/examples/simple_multi_gpu_example.py | 2 +- cuda_core/examples/vector_add.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cuda_core/docs/source/release/0.X.Y-notes.rst b/cuda_core/docs/source/release/0.X.Y-notes.rst index e87cbdee3..f309c21e4 100644 --- a/cuda_core/docs/source/release/0.X.Y-notes.rst +++ b/cuda_core/docs/source/release/0.X.Y-notes.rst @@ -52,3 +52,4 @@ Fixes and enhancements - Fixed a bug in :class:`Stream` and other classes where object cleanup would error during interpreter shutdown. - :class:`StridedMemoryView` of an underlying array using the DLPack protocol will no longer leak memory. - General performance improvement. +- Fixed incorrect index usage in vector_add example diff --git a/cuda_core/examples/simple_multi_gpu_example.py b/cuda_core/examples/simple_multi_gpu_example.py index a382e0943..d91ab2c85 100644 --- a/cuda_core/examples/simple_multi_gpu_example.py +++ b/cuda_core/examples/simple_multi_gpu_example.py @@ -35,7 +35,7 @@ size_t N) { const unsigned int tid = threadIdx.x + blockIdx.x * blockDim.x; for (size_t i=tid; i Date: Mon, 6 Oct 2025 14:11:09 +0000 Subject: [PATCH 3/4] [pre-commit.ci] auto code formatting --- cuda_core/docs/source/release/0.X.Y-notes.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cuda_core/docs/source/release/0.X.Y-notes.rst b/cuda_core/docs/source/release/0.X.Y-notes.rst index f309c21e4..109e8a44c 100644 --- a/cuda_core/docs/source/release/0.X.Y-notes.rst +++ b/cuda_core/docs/source/release/0.X.Y-notes.rst @@ -52,4 +52,4 @@ Fixes and enhancements - Fixed a bug in :class:`Stream` and other classes where object cleanup would error during interpreter shutdown. - :class:`StridedMemoryView` of an underlying array using the DLPack protocol will no longer leak memory. - General performance improvement. -- Fixed incorrect index usage in vector_add example +- Fixed incorrect index usage in vector_add example From f397f573c839e4fd36ec84604959d02eae206b71 Mon Sep 17 00:00:00 2001 From: XXXXRT666 <157766680+XXXXRT666@users.noreply.github.com> Date: Mon, 6 Oct 2025 16:45:38 +0100 Subject: [PATCH 4/4] chore: add sign-off Signed-off-by: XXXXRT666 <157766680+XXXXRT666@users.noreply.github.com>