@@ -33,12 +33,28 @@ RUN apt-get update && \
33
33
libnvinfer-dev=$TENSORT_VERSION-1+cuda9.0 \
34
34
libnccl2=$NCCL_VERSION-1+cuda9.0 \
35
35
libnccl-dev=$NCCL_VERSION-1+cuda9.0 \
36
- cuda-libraries-$CUDA_PKG_VERSION && \
36
+ cuda-libraries-$CUDA_PKG_VERSION \
37
+ curl && \
37
38
apt-get clean && \
38
39
rm -rf /var/lib/apt/lists/*
39
40
41
+ # Add Intel MKL repository
42
+ ENV key="https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB"
43
+ RUN curl "${key}" | apt-key add - && \
44
+ echo 'deb http://apt.repos.intel.com/mkl all main' | \
45
+ tee /etc/apt/sources.list.d/intel-mkl.list
46
+ RUN apt-get update
47
+
48
+ # Multiple candidates for intel-mkl-64bit, so have to be specific
49
+ RUN apt-get install -y --no-install-recommends intel-mkl-64bit-2018.1-038
50
+ RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
51
+
52
+ # Ensure loader can find MKL path
53
+ RUN echo '/opt/intel/mkl/lib/intel64' | tee /etc/ld.so.conf.d/intel-mkl.conf
54
+ RUN ldconfig
55
+
40
56
# Link NCCL libray and header where the build script expects them.
41
- RUN mkdir /usr/local/cuda-9.0/lib && \
57
+ RUN mkdir -p /usr/local/cuda-9.0/lib && \
42
58
ln -s /usr/local/cuda-9.0 /usr/local/cuda && \
43
59
ln -s /usr/lib/x86_64-linux-gnu/libcudnn.so.7.2.1 /usr/local/cuda/lib64/libcudnn.so && \
44
60
ldconfig && \
@@ -95,6 +111,7 @@ RUN python3 -m pip install -U setuptools pip wheel && \
95
111
matplotlib \
96
112
numpy \
97
113
protobuf \
114
+ pynvrtc \
98
115
pydot \
99
116
python-nvd3 \
100
117
pyyaml \
@@ -121,7 +138,7 @@ RUN git clone --recursive https://github.com/pytorch/pytorch && \
121
138
cd build && \
122
139
cmake .. \
123
140
-DCUDA_ARCH_NAME=Manual \
124
- -DCUDA_ARCH_BIN="35 52 60 61" \
141
+ -DCUDA_ARCH_BIN="30 35 50 52 60 61 70 " \
125
142
-DCUDA_ARCH_PTX="61" \
126
143
-DUSE_NNPACK=OFF \
127
144
-DUSE_ROCKSDB=OFF \
0 commit comments