Skip to content

Commit de069e8

Browse files
committed
Add a ld.so.conf entry to find CUDA.
1 parent f19a03e commit de069e8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

runner/Dockerfile.arch

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ RUN pacman -Suy --noconfirm --needed \
1212
# clean-up
1313
&& find /var/cache/pacman/ -type f -delete
1414

15+
# to find CUDA
16+
RUN echo "/usr/lib/x86_64-linux-gnu" > /etc/ld.so.conf.d/cuda.conf && ldconfig
17+
1518
RUN mkdir /storage /cache
1619

1720
COPY ./entrypoint.sh /

runner/Dockerfile.ubuntu

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
1414
# clean-up
1515
&& rm -rf /var/lib/apt/lists/*
1616

17+
# to find CUDA
18+
RUN echo "/usr/lib/x86_64-linux-gnu" > /etc/ld.so.conf.d/cuda.conf && ldconfig
19+
1720
RUN mkdir /storage /cache
1821

1922
COPY ./entrypoint.sh /

0 commit comments

Comments
 (0)