Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.

ARG CUDA_SAMPLES_VERSION=13.2
# R580 is the minimum driver branch supported by gpu-operator and
# its backcompat stretches all the way back to the Maxwell architecure.
# CUDA SAMPLES v12.9 is used as that is the latest version with Maxwell support.
ARG CUDA_SAMPLES_VERSION=12.9

FROM golang:1.27.0@sha256:65b6f280bf050ec5af12716857e8ea8439d694dbba8f31ceeb7630670071f2bb AS builder

Expand Down Expand Up @@ -64,7 +67,7 @@ WORKDIR /build
ARG SAMPLE_NAME=vectorAdd

RUN curl -L https://codeload.github.com/NVIDIA/cuda-samples/tar.gz/refs/tags/v${CUDA_SAMPLES_VERSION} | \
tar -xzvf - --strip-components=1 --wildcards */${SAMPLE_NAME}/* --wildcards */Common/* --wildcards */cmake/* && \
tar -xzvf - --strip-components=1 --wildcards */${SAMPLE_NAME}/* --wildcards */Common/* && \
cd $(find /build/Samples -iname "${SAMPLE_NAME}") && \
cmake . && \
make && \
Expand Down
Loading