NGC | Catalog
CatalogContainersCUDA Samples

CUDA Samples

For copy image paths and more information, please view on a desktop device.
Logo for CUDA Samples

Description

Collection of containerized CUDA Samples

Publisher

NVIDIA

Latest Tag

vectoradd-cuda11.7.1-ubi8

Modified

November 4, 2022

Compressed Size

134.37 MB

Multinode Support

No

Multi-Arch Support

Yes

vectoradd-cuda11.7.1-ubi8 (Latest) Scan Results

Linux / amd64

Linux / arm64

CUDA Samples

This is a collection of containers to run CUDA workloads on the GPUs. The collection includes containerized CUDA samples for example, vectorAdd (to demonstrate vector addition), nbody (or gravitational n-body simulation) and other examples. These containers can be used for validating the software configuration of GPUs in the system or simply to run some example workloads.

The vectorAdd example is used by the NVIDIA GPU Operator as part of its self-validation.

Usage

The containers can be run on the Docker command-line or in Kubernetes pod specs. For example, in Kubernetes use the following podspec:

cat << EOF | kubectl create -f -
 apiVersion: v1
 kind: Pod
 metadata:
   name: vectorAdd
 spec:
   restartPolicy: OnFailure
   containers:
   - name: vectorAdd
     image: nvcr.io/nvidia/k8s/cuda-sample:vectoradd-cuda10.2
     resources:
       limits:
          nvidia.com/gpu: 1
EOF

or run on the Docker CLI:

docker run --rm --gpus all nvcr.io/nvidia/k8s/cuda-sample:vectoradd-cuda10.2

License Agreements

The containers are licensed under Apache 2.0.

Suggested Reading

  • Code Repository for the samples is available here