1.1 The NVIDIA software stack
The layers between the GPU and your AI application: driver, CUDA, libraries, containers and serving.
Key points
The CUDA toolkit is what developers build with. The driver is what runs on the server. They are versioned separately. NVIDIA's CUDA Compatibility guide defines supported ways to run newer CUDA software on existing driver installations, within documented limits. Forward compatibility uses the cuda-compat package so applications built with a newer toolkit can run on older base drivers, subject to platform and GPU support.
What NVIDIA says (2)
“CUDA Compatibility helps bridge that gap by defining supported ways to run newer CUDA software on existing driver installations, within documented limits.”
“It also includes Forward Compatibility , which uses the cuda-compat-<major>-<minor> package to allow applications built with a newer toolkit to run on older base drivers across major release families, subject to platform and GPU support.”
A collective is a communication step that involves every GPU in a job. All-reduce is a collective that sums values, such as gradients, across all GPUs and gives every GPU the result. NCCL (NVIDIA Collective Communications Library) implements multi-GPU and multi-node communication primitives. It provides all-gather, all-reduce, broadcast, reduce, reduce-scatter, and point-to-point send and receive.
What NVIDIA says (3)
“is a library providing inter-GPU communication primitives that are topology-aware and can be easily integrated into applications.”
“NCCL implements both collective communication and point-to-point send/receive primitives.”
“NCCL provides the following collective communication primitives: AllReduce Broadcast Reduce AllGather ReduceScatter”
CUDA is NVIDIA's platform for GPU computing. CUDA-X is the collection of libraries built on it. cuDNN (CUDA Deep Neural Network library) is a GPU-accelerated library of primitives for deep neural networks. A primitive is a basic building block that frameworks such as PyTorch call under the hood. NVIDIA lists attention, convolution, matrix multiplication, normalization and pooling among the operations it tunes.
What NVIDIA says (5)
“The NVIDIA CUDA Deep Neural Network library (cuDNN) is a GPU-accelerated library of primitives for deep neural networks.”
“It provides highly tuned implementations of operations arising frequently in deep neural network (DNN) applications: Scaled dot-product attention Convolution, including cross-correlation Matrix multiplication Normalizations, softmax, and pooling”
“to enable any computational workload to use the throughput capability of GPUs independent of graphics APIs.”
“Libraries like cuBLAS, cuFFT, cuDNN, and CUTLASS are just a few examples of libraries that help developers avoid reimplementing well-established algorithms.”
“NVIDIA CUDA-X™, built on CUDA, is a collection of libraries that deliver dramatically higher performance across application domains, including AI and HPC.”
RAPIDS is NVIDIA's set of CUDA-X data science libraries. cuDF accelerates fundamental DataFrame operations, the table operations pandas users run. cuML is a GPU-accelerated machine learning library. NVIDIA says zero-code-change APIs accelerate popular tools like pandas and scikit-learn.
What NVIDIA says (4)
“is a GPU-accelerated library for tabular data processing.”
“NVIDIA cuML is a suite of fast, GPU-accelerated machine learning algorithms designed for data science and analytical tasks.”
“a zero-code change accelerator, cudf.pandas , for existing pandas code.”
“automatically accelerate existing code with zero code changes.”
A container packages an application with everything it needs to run, so it behaves the same everywhere. The NGC catalog gives access to GPU-accelerated software: performance-optimized containers, pretrained AI models and industry-specific SDKs (software development kits). NVIDIA says these can be deployed on premises, in the cloud or at the edge.
What NVIDIA says (2)
“The NGC Catalog consists of containers, pretrained models, Helm charts for Kubernetes deployments, and industry-specific AI toolkits with software development kits (SDKs).”
“The NGC catalog provides access to GPU-accelerated software that speeds up end-to-end workflows with performance-optimized containers, pretrained AI models, and industry-specific SDKs that can be deployed on premises, in the cloud, or at the edge.”
Containers normally cannot see a server's GPUs. The NVIDIA Container Toolkit provides the runtime pieces that expose GPUs to containers. NVIDIA lists components such as the NVIDIA Container Runtime and the nvidia-ctk command-line tool. The GPU Operator installs it, together with the driver, on Kubernetes nodes.
What NVIDIA says (2)
“It currently includes: The NVIDIA Container Runtime ( nvidia-container-runtime ) The NVIDIA Container Toolkit CLI ( nvidia-ctk )”
“These components include the NVIDIA drivers (to enable CUDA), Kubernetes device plugin for GPUs, the NVIDIA Container Toolkit”
The CUDA Programming Guide calls the NVIDIA Driver the operating system of the GPU. It must be installed on the host operating system and is needed for every use of the GPU, including CUDA, display and graphics. It is foundational to the CUDA platform.
What NVIDIA says (3)
“CUDA Toolkit and NVIDIA Driver # The NVIDIA Driver can be thought of as the operating system of the GPU.”
“The NVIDIA Driver is a software component which must be installed on the host system’s operating system and is necessary for all GPU uses, including display and graphical functionality.”
“The NVIDIA Driver is foundational to the CUDA platform.”
Developers build CUDA software with the CUDA Toolkit: libraries, headers and tools. The Programming Guide says the toolkit is a separate product from the NVIDIA driver. The CUDA runtime is a library in the toolkit that provides an API for common tasks such as allocating memory, copying data between GPUs and CPUs, and launching kernels. The driver underneath makes the GPU usable at all.
What NVIDIA says (3)
“The CUDA Toolkit is a set of libraries, headers, and tools for writing, building, and analyzing software which utilizes GPU computing.”
“The CUDA Toolkit is a separate software product from the NVIDIA driver The CUDA runtime is a special case of one of the libraries provided by the CUDA Toolkit.”
“The CUDA runtime provides both an API and some language extensions to handle common tasks such as allocating memory, copying data between GPUs and other GPUs or CPUs, and launching kernels.”
Software is often compiled for specific GPU generations. The CUDA Programming Guide says every NVIDIA GPU has a compute capability (CC) number that shows which features it supports and gives some hardware parameters. It has a major and minor version (X.Y) and corresponds directly to the SM version, so CC 12.0 GPUs have SM version sm_120.
What NVIDIA says (3)
“Compute Capability and Streaming Multiprocessor Versions # Every NVIDIA GPU has a Compute Capability (CC) number, which indicates what features are supported by that GPU and specifies some hardware parameters for that GPU.”
“The compute capability directly corresponds to the version number of the SM.”
“For example, the SMs within a GPU of CC 12.0 have SM version sm_120 .”
Supply-chain security matters for production AI. NVIDIA's NGC documentation says all software hosted on NGC is scanned for common vulnerabilities and exposures (CVEs), cryptographic material and private keys, and is tested on many GPU platforms, including public cloud instances, workstations and data center or edge OEM servers.
What NVIDIA says (3)
“All software hosted on NGC is scanned for common vulnerabilities and exposures (CVEs), cryptographic material, and private keys.”
“In addition to security scanning, NGC software is tested against a wide range of GPU-enabled platforms.”
“These platforms include public cloud instances, workstations, and OEM servers designed for data center or edge deployments.”
NGC groups users into organizations. The NGC documentation says an NGC organization is where administrators manage users, teams and access to NGC services. Org owners or user admins invite users and assign roles, or map membership from an external identity provider.
What NVIDIA says (2)
“NGC Organizations and Teams # An NGC organization (org) is where administrators manage users, teams, and access to NGC services.”
“NGC Org Invitation : An NGC org owner or user admin invites users from the NGC Org Users page and assigns their NGC roles and service access.”
NGC organizations are the top-level container for enterprise deployments. Inside an org, NGC Teams provide isolated registry namespaces: members can share containers, models and resources within their team, separated from other teams in the organization.
What NVIDIA says (2)
“NGC Teams # NGC organizations (orgs) serve as the top-level container for enterprise deployments.”
“Teams provide isolated registry namespaces, ensuring members can share containers, models, and resources within their team while maintaining separation from other teams in the organization.”
NVIDIA AI Enterprise is NVIDIA's supported software suite for production AI. Its documentation describes two layers: the Application Layer (AI frameworks, NIM microservices, SDKs) and the Infrastructure Layer (GPU drivers, Kubernetes operators, cluster management tools). Each layer has independent release branches and lifecycles, with enterprise support backed by SLAs.
What NVIDIA says (2)
“It delivers AI frameworks, NIM microservices, and SDKs through its Application Layer, and GPU drivers, Kubernetes operators, and cluster management tools through its Infrastructure Layer.”
“Each layer has independent release branches and lifecycles, plus enterprise support backed by SLAs.”
MPI (Message Passing Interface) is the classic HPC standard for collective communication. NVIDIA's NCCL documentation says NCCL closely follows the MPI collectives API, so MPI users find it natural. The difference is that NCCL collectives take a 'stream' argument, which ties them directly into CUDA's asynchronous execution model.
What NVIDIA says (2)
“NCCL closely follows the popular collectives API defined by MPI (Message Passing Interface).”
“In a minor departure from MPI, NCCL collectives take a “stream” argument which provides direct integration with the CUDA programming model.”
Installing the toolkit is not enough; Docker must be told about the NVIDIA runtime. The Container Toolkit install guide says to configure it with 'nvidia-ctk runtime configure --runtime=docker', which modifies /etc/docker/daemon.json. Then restart Docker.
What NVIDIA says (1)
“Configuring Docker # Configure the container runtime by using the nvidia-ctk command: $ sudo nvidia-ctk runtime configure --runtime = docker The nvidia-ctk command modifies the /etc/docker/daemon.json file on the host.”
Key terms
- CUDA: NVIDIA's parallel computing platform; CUDA-X libraries built on it accelerate AI and HPC.
- cuDNN: A GPU library of tuned building blocks, such as convolutions, for deep neural networks.
- NCCL: The library that moves data between GPUs inside and across nodes, with operations such as all-reduce.
- NGC catalog: NVIDIA's catalog of GPU-optimized containers, pretrained models and SDKs.
- Container: A package of an application together with its software dependencies (libraries, configuration, tools) that runs the same on any host.
Try it
Sample question
A team wants to run an application built with a newer CUDA toolkit on servers whose GPU driver is older. What does NVIDIA's CUDA Compatibility guidance offer?
Show the answer
Answer: Supported ways to run newer CUDA software on existing drivers within documented limits, including forward compatibility through the cuda-compat package.
The CUDA toolkit is what developers build with. The driver is what runs on the server. They are versioned separately. NVIDIA's CUDA Compatibility guide defines supported ways to run newer CUDA software on existing driver installations, within documented limits. Forward compatibility uses the cuda-compat package so applications built with a newer toolkit can run on older base drivers, subject to platform and GPU support.
What NVIDIA says (2)
“CUDA Compatibility helps bridge that gap by defining supported ways to run newer CUDA software on existing driver installations, within documented limits.”
“It also includes Forward Compatibility , which uses the cuda-compat-<major>-<minor> package to allow applications built with a newer toolkit to run on older base drivers across major release families, subject to platform and GPU support.”
Practice 1.1 (15 questions) Full Essential AI Knowledge guide