Skip to content

Commit 71487b6

Browse files
authored
Adding Cuda home environment values helps other libraries avoid unwanted errors, for example DeepSpeed (#1360)
1 parent 65e4cd1 commit 71487b6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Dockerfile.tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,4 +708,6 @@ RUN echo "$GIT_COMMIT" > /etc/git_commit && echo "$BUILD_DATE" > /etc/build_date
708708
{{ if eq .Accelerator "gpu" }}
709709
# Remove the CUDA stubs.
710710
ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH_NO_STUBS"
711+
# Add the CUDA home.
712+
ENV CUDA_HOME=/usr/local/cuda
711713
{{ end }}

0 commit comments

Comments
 (0)