NVIDIA NVSHMEM (CUDA 13)
nvidia-nvshmem-cu13 is a binary distribution package providing the NVIDIA NVSHMEM library, compiled specifically for CUDA Toolkit 13.x. NVSHMEM is a communication library that creates a global address space, enabling efficient and scalable data exchange across NVIDIA GPU clusters. This package itself does not contain Python-level bindings; instead, it serves as a foundational runtime dependency for other Python libraries (like `nvshmem-python`, Dask-CUDA, or CuPy) that utilize NVSHMEM's underlying C/C++ capabilities. The current version is 3.6.5.
Warnings
- gotcha This `nvidia-nvshmem-cu13` package provides native NVSHMEM binaries for CUDA 13. It does NOT contain direct Python modules or APIs for import (e.g., `import nvidia-nvshmem-cu13` will fail). Its primary role is to act as a system-level runtime dependency for other Python libraries (e.g., `nvshmem-python`, Dask-CUDA, CuPy) that internally utilize NVSHMEM.
- gotcha CUDA Version Specificity: This package (`-cu13`) is built specifically for CUDA Toolkit 13.x. Ensure your system's CUDA installation and any other dependent libraries (e.g., PyTorch, TensorFlow, CuPy, Dask-CUDA) are compatible with CUDA 13.x. Mismatched CUDA versions can lead to runtime errors or crashes.
- gotcha Requires MPI and Multi-GPU Environment: NVSHMEM is designed for high-performance communication across multiple GPUs, typically in a cluster environment. Meaningful usage often requires an MPI runtime (e.g., OpenMPI, MPICH) and multiple NVIDIA GPUs accessible to your application. Running NVSHMEM applications on a single GPU without MPI might still work but won't leverage its full potential and adds unnecessary complexity.
Install
-
pip install nvidia-nvshmem-cu13
Imports
- No direct Python imports
N/A
Quickstart
# This package (nvidia-nvshmem-cu13) provides native NVSHMEM binaries for CUDA 13.
# It does not expose direct Python modules for import or direct usage.
# Its role is to serve as a runtime dependency for other Python libraries
# (e.g., nvshmem-python, Dask-CUDA, CuPy) that internally leverage NVSHMEM
# for high-performance GPU-aware communication.
print("`nvidia-nvshmem-cu13` is installed as a system-level dependency.")
print("Python applications will use other libraries (e.g., `nvshmem-python`)")
print("that link against the NVSHMEM binaries provided by this package.")
print("\nTo truly 'use' NVSHMEM, you would typically write code using a library like `nvshmem-python`: ")
print("e.g., `pip install nvshmem-python` and then `import nvshmem; nvshmem.init()`")
# This quickstart does not include actual NVSHMEM operations because
# this specific package does not provide a direct Python API.