File tree Expand file tree Collapse file tree
elements/nvidia-cuda-samples Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ===================
2+ nvidia-cuda-samples
3+ ===================
4+
5+ * Downloads and compiles NVIDA's collection of `CUDA samples <https://github.com/NVIDIA/cuda-samples >`_ for demo purposes.
6+
7+ `DIB_NVIDIA_CUDA_SAMPLES_VERSION `: Git ref to checkout.
8+
9+ For example:
10+
11+ .. code-block ::
12+
13+ # GIT TAG
14+ export DIB_NVIDIA_CUDA_SAMPLES_VERSION:v12.1
Original file line number Diff line number Diff line change 1+ package-installs
Original file line number Diff line number Diff line change 1+ make :
2+ gcc :
3+ git :
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ if [ ${DIB_DEBUG_TRACE:- 1} -gt 0 ]; then
4+ set -x
5+ fi
6+ set -eu
7+ set -o pipefail
8+
9+ cd /opt
10+ git clone https://github.com/NVIDIA/cuda-samples
11+ cd cuda-samples
12+ git checkout " ${DIB_NVIDIA_CUDA_SAMPLES_VERSION:- master} "
13+ make
You can’t perform that action at this time.
0 commit comments