fix mkldnn mklml library Ref.SINGA-433
diff --git a/tool/docker/devel/ubuntu/cpu/Dockerfile b/tool/docker/devel/ubuntu/cpu/Dockerfile
index c6eacc5..d8a6cc1 100644
--- a/tool/docker/devel/ubuntu/cpu/Dockerfile
+++ b/tool/docker/devel/ubuntu/cpu/Dockerfile
@@ -51,7 +51,6 @@
RUN wget https://github.com/intel/mkl-dnn/archive/v0.18.tar.gz -P /tmp/ \
&& tar zxf /tmp/v0.18.tar.gz -C /tmp/ \
&& cd /tmp/mkl-dnn-0.18/ \
- && cd scripts && ./prepare_mkl.sh && cd .. \
&& mkdir -p build && cd build && cmake .. \
&& make && make install
@@ -69,9 +68,6 @@
&& cmake -DENABLE_TEST=ON -DUSE_PYTHON3=ON -DUSE_MKLDNN=ON ..
RUN cd $HOME/incubator-singa/build && make && make install
-# fix linker could not find /usr/local/lib/libmklml_intel.so
-RUN ldconfig
-
WORKDIR $HOME/incubator-singa
EXPOSE 22
diff --git a/tool/docker/devel/ubuntu/cuda10/Dockerfile b/tool/docker/devel/ubuntu/cuda10/Dockerfile
index d49f16a..6d29f9b 100644
--- a/tool/docker/devel/ubuntu/cuda10/Dockerfile
+++ b/tool/docker/devel/ubuntu/cuda10/Dockerfile
@@ -63,7 +63,6 @@
RUN wget https://github.com/intel/mkl-dnn/archive/v0.18.tar.gz -P /tmp/ \
&& tar zxf /tmp/v0.18.tar.gz -C /tmp/ \
&& cd /tmp/mkl-dnn-0.18/ \
- && cd scripts && ./prepare_mkl.sh && cd .. \
&& mkdir -p build && cd build && cmake .. \
&& make && make install
diff --git a/tool/docker/devel/ubuntu/cuda9/Dockerfile b/tool/docker/devel/ubuntu/cuda9/Dockerfile
index c5b3383..98a0a88 100644
--- a/tool/docker/devel/ubuntu/cuda9/Dockerfile
+++ b/tool/docker/devel/ubuntu/cuda9/Dockerfile
@@ -64,7 +64,6 @@
RUN wget https://github.com/intel/mkl-dnn/archive/v0.18.tar.gz -P /tmp/ \
&& tar zxf /tmp/v0.18.tar.gz -C /tmp/ \
&& cd /tmp/mkl-dnn-0.18/ \
- && cd scripts && ./prepare_mkl.sh && cd .. \
&& mkdir -p build && cd build && cmake .. \
&& make && make install