File tree Expand file tree Collapse file tree 5 files changed +17
-5
lines changed Expand file tree Collapse file tree 5 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -6,4 +6,4 @@ COPY . tensorflow_cc
6
6
# RUN git clone https://github.com/FloopCZ/tensorflow_cc.git
7
7
8
8
# build and install
9
- RUN ./tensorflow_cc/Dockerfiles/install-archlinux.sh --shared
9
+ RUN ./tensorflow_cc/Dockerfiles/install-archlinux.sh
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ COPY . tensorflow_cc
6
6
# RUN git clone https://github.com/FloopCZ/tensorflow_cc.git
7
7
8
8
# build and install
9
- RUN ./tensorflow_cc/Dockerfiles/install-archlinux.sh --cuda --shared
9
+ RUN ./tensorflow_cc/Dockerfiles/install-archlinux.sh --cuda
10
10
11
11
ENV NVIDIA_VISIBLE_DEVICES all
12
12
ENV NVIDIA_DRIVER_CAPABILITIES compute,utility
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ pacman -Syu --noconfirm --needed \
24
24
wget
25
25
26
26
pacman -S --noconfirm --needed \
27
- java-environment=8 \
27
+ jdk11-openjdk \
28
28
libarchive \
29
29
protobuf \
30
30
unzip \
@@ -41,6 +41,7 @@ if $cuda; then
41
41
cuda \
42
42
cudnn \
43
43
nccl
44
+ source /etc/profile.d/cuda.sh
44
45
fi
45
46
46
47
# when building TF with Intel MKL support, `locate` database needs to exist
@@ -54,4 +55,15 @@ if $cuda; then
54
55
rm -vf /usr/bin/nvidia*
55
56
rm -vf /usr/lib/libnvidia*
56
57
rm -vf /usr/lib/libcuda*
58
+ rm -rvf /opt/cuda/doc/
59
+ rm -rvf /opt/cuda/extras/
60
+ rm -rvf /opt/cuda/* nsight*
61
+ rm -rvf /opt/cuda/* nvvp*
62
+ rm -rvf /opt/cuda/samples/
57
63
fi
64
+
65
+ # cleanup packages
66
+ rm -rvf /usr/local/lib/bazel/
67
+ rm -vf /usr/local/bin/bazel
68
+ pacman --noconfirm -R jdk11-openjdk python python-numpy
69
+ pacman --noconfirm -Rns $( pacman -Qtdq)
Original file line number Diff line number Diff line change @@ -6,4 +6,4 @@ COPY . tensorflow_cc
6
6
# RUN git clone https://github.com/FloopCZ/tensorflow_cc.git
7
7
8
8
# build and install
9
- RUN ./tensorflow_cc/Dockerfiles/install-ubuntu.sh --shared
9
+ RUN ./tensorflow_cc/Dockerfiles/install-ubuntu.sh
Original file line number Diff line number Diff line change @@ -9,5 +9,5 @@ COPY . tensorflow_cc
9
9
# temporarily use the CUDA stubs, the real libraries will be provided by nvidia-docker
10
10
RUN ln -s /usr/local/cuda/lib64/stubs/libcuda.so /usr/local/cuda/lib64/stubs/libcuda.so.1 \
11
11
&& LD_LIBRARY_PATH=/usr/local/cuda/lib64/stubs/:$LD_LIBRARY_PATH \
12
- ./tensorflow_cc/Dockerfiles/install-ubuntu.sh --shared -- cuda \
12
+ ./tensorflow_cc/Dockerfiles/install-ubuntu.sh --cuda \
13
13
&& rm /usr/local/cuda/lib64/stubs/libcuda.so.1
You can’t perform that action at this time.
0 commit comments