Skip to content

Commit 681fbba

Browse files
committed
Adds nvidia-cuda-samples element
1 parent f4fd353 commit 681fbba

File tree

4 files changed

+31
-0
lines changed

4 files changed

+31
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-installs
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
make:
2+
gcc:
3+
git:
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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

0 commit comments

Comments
 (0)