File tree 2 files changed +9
-0
lines changed 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -41,8 +41,12 @@ RUN bash ./install_conda.sh && rm install_conda.sh
41
41
42
42
# Install CUDA
43
43
FROM base as cuda
44
+ ARG CUDA_VERSION=10.2
44
45
RUN rm -rf /usr/local/cuda-*
45
46
ADD ./common/install_cuda.sh install_cuda.sh
47
+ ENV CUDA_HOME=/usr/local/cuda-${CUDA_VERSION}
48
+ # Make things in our path by default
49
+ ENV PATH=/usr/local/cuda-${CUDA_VERSION}/bin:$PATH
46
50
47
51
FROM cuda as cuda11.6
48
52
RUN bash ./install_cuda.sh 11.6
Original file line number Diff line number Diff line change @@ -52,6 +52,11 @@ if [[ "${DOCKER_TAG}" =~ ^cuda* ]]; then
52
52
set -x
53
53
docker tag ${DOCKER_IMAGE} " pytorch/conda-builder:cuda${CUDA_VERSION/ ./ } "
54
54
)
55
+ # Test that we're using the right CUDA compiler
56
+ (
57
+ set -x
58
+ docker run --rm " ${DOCKER_IMAGE} " nvcc --version | grep " cuda_${CUDA_VERSION} "
59
+ )
55
60
fi
56
61
57
62
if [[ -n ${GITHUB_REF} ]]; then
You can’t perform that action at this time.
0 commit comments