Skip to content

Commit 5124138

Browse files
authored
Merge branch 'main' into main
2 parents dbab48c + 37d6f01 commit 5124138

33 files changed

+906
-633
lines changed

cuda_bindings/examples/0_Introduction/clock_nvrtc_test.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# Copyright 2021-2025 NVIDIA Corporation. All rights reserved.
22
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
33

4+
# ################################################################################
5+
#
6+
# This example demonstrates using the device clock for kernel timing via
7+
# NVRTC-compiled CUDA code.
8+
#
9+
# ################################################################################
10+
411
import platform
512

613
import numpy as np

cuda_bindings/examples/0_Introduction/simpleCubemapTexture_test.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Copyright 2021-2025 NVIDIA Corporation. All rights reserved.
22
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
33

4+
# ################################################################################
5+
#
6+
# This example demonstrates cubemap texture sampling and transformation.
7+
#
8+
# ################################################################################
9+
410
import ctypes
511
import sys
612
import time

cuda_bindings/examples/0_Introduction/simpleP2P_test.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# Copyright 2021-2025 NVIDIA Corporation. All rights reserved.
22
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
33

4+
# ################################################################################
5+
#
6+
# This example demonstrates peer-to-peer memory access and data transfer
7+
# between multiple GPUs.
8+
#
9+
# ################################################################################
10+
411
import ctypes
512
import platform
613
import sys

cuda_bindings/examples/0_Introduction/simpleZeroCopy_test.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# Copyright 2021-2025 NVIDIA Corporation. All rights reserved.
22
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
33

4+
# ################################################################################
5+
#
6+
# This example demonstrates vector addition using zero-copy (mapped) host
7+
# memory, allowing the GPU to access CPU memory directly.
8+
#
9+
# ################################################################################
10+
411
import ctypes
512
import math
613
import platform

cuda_bindings/examples/0_Introduction/systemWideAtomics_test.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Copyright 2021-2025 NVIDIA Corporation. All rights reserved.
22
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
33

4+
# ################################################################################
5+
#
6+
# This example demonstrates system-wide atomic operations on managed memory.
7+
#
8+
# ################################################################################
9+
410
import ctypes
511
import os
612
import sys

cuda_bindings/examples/0_Introduction/vectorAddDrv_test.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# Copyright 2021-2025 NVIDIA Corporation. All rights reserved.
22
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
33

4+
# ################################################################################
5+
#
6+
# This example demonstrates vector addition using the CUDA Driver API with
7+
# unified virtual addressing.
8+
#
9+
# ################################################################################
10+
411
import ctypes
512
import math
613
import sys

cuda_bindings/examples/0_Introduction/vectorAddMMAP_test.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# Copyright 2021-2025 NVIDIA Corporation. All rights reserved.
22
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
33

4+
# ################################################################################
5+
#
6+
# This example demonstrates vector addition using multi-device memory
7+
# mapping (cuMemCreate, cuMemMap) with virtual address management.
8+
#
9+
# ################################################################################
10+
411
import ctypes
512
import math
613
import platform

cuda_bindings/examples/2_Concepts_and_Techniques/streamOrderedAllocation_test.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# Copyright 2021-2025 NVIDIA Corporation. All rights reserved.
22
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
33

4+
# ################################################################################
5+
#
6+
# This example demonstrates stream-ordered memory allocation (cudaMallocAsync
7+
# / cudaFreeAsync) and memory pool release thresholds.
8+
#
9+
# ################################################################################
10+
411
import ctypes
512
import math
613
import platform

cuda_bindings/examples/3_CUDA_Features/globalToShmemAsyncCopy_test.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# Copyright 2021-2025 NVIDIA Corporation. All rights reserved.
22
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
33

4+
# ################################################################################
5+
#
6+
# This example demonstrates asynchronous copy from global to shared memory
7+
# (memcpy_async) in matrix multiplication kernels.
8+
#
9+
# ################################################################################
10+
411
import ctypes
512
import math
613
import platform

cuda_bindings/examples/3_CUDA_Features/simpleCudaGraphs_test.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# Copyright 2021-2025 NVIDIA Corporation. All rights reserved.
22
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
33

4+
# ################################################################################
5+
#
6+
# This example demonstrates CUDA Graphs for capture and replay of GPU
7+
# workloads, including manual graph construction and stream capture.
8+
#
9+
# ################################################################################
10+
411
import ctypes
512
import random as rnd
613

0 commit comments

Comments
 (0)