Skip to content

Commit 4a56196

Browse files
lh0x00calderjo
authored andcommitted
Adding Cuda home environment values helps other libraries avoid unwanted errors, for example DeepSpeed (#1360)
1 parent 4677416 commit 4a56196

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
@@ -712,4 +712,6 @@ RUN echo "$GIT_COMMIT" > /etc/git_commit && echo "$BUILD_DATE" > /etc/build_date
712712
{{ if eq .Accelerator "gpu" }}
713713
# Remove the CUDA stubs.
714714
ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH_NO_STUBS"
715+
# Add the CUDA home.
716+
ENV CUDA_HOME=/usr/local/cuda
715717
{{ end }}

0 commit comments

Comments
 (0)