File tree Expand file tree Collapse file tree 3 files changed +9
-18
lines changed Expand file tree Collapse file tree 3 files changed +9
-18
lines changed Original file line number Diff line number Diff line change 3
3
set -ex
4
4
5
5
# MKL
6
+ MKL_VERSION=2019.5
7
+ MKL_BUILD=281
6
8
mkdir -p /opt/intel/lib
7
9
pushd /tmp
8
- curl -fsSL https://anaconda.org/intel/mkl-static/2019.5 /download/linux-64/mkl-static-2019.5-intel_281 .tar.bz2 | tar xjv
10
+ curl -fsSL https://anaconda.org/intel/mkl-static/${MKL_VERSION} /download/linux-64/mkl-static-${MKL_VERSION} -intel_ ${MKL_BUILD} .tar.bz2 | tar xjv
9
11
mv lib/* /opt/intel/lib/
10
- curl -fsSL https://anaconda.org/intel/mkl-include/2019.5 /download/linux-64/mkl-include-2019.5-intel_281 .tar.bz2 | tar xjv
12
+ curl -fsSL https://anaconda.org/intel/mkl-include/${MKL_VERSION} /download/linux-64/mkl-include-${MKL_VERSION} -intel_ ${MKL_BUILD} .tar.bz2 | tar xjv
11
13
mv include /opt/intel/
Original file line number Diff line number Diff line change @@ -10,12 +10,9 @@ ENV LANG en_US.UTF-8
10
10
ENV LANGUAGE en_US.UTF-8
11
11
12
12
FROM base as intel
13
- RUN mkdir -p /opt/intel/lib
14
- WORKDIR /tmp
15
- RUN curl -fsSL https://anaconda.org/intel/mkl-static/2019.5/download/linux-64/mkl-static-2019.5-intel_281.tar.bz2 | tar xjv
16
- RUN mv lib/* /opt/intel/lib/
17
- RUN curl -fsSL https://anaconda.org/intel/mkl-include/2019.5/download/linux-64/mkl-include-2019.5-intel_281.tar.bz2 | tar xjv
18
- RUN mv include /opt/intel/
13
+ # Install MKL
14
+ ADD ./common/install_mkl.sh install_mkl.sh
15
+ RUN bash ./install_mkl.sh && rm install_mkl.sh
19
16
20
17
FROM base as cuda
21
18
ADD ./common/install_cuda.sh install_cuda.sh
@@ -37,10 +34,6 @@ FROM base as final
37
34
ADD ./common/install_patchelf.sh install_patchelf.sh
38
35
RUN bash ./install_patchelf.sh && rm install_patchelf.sh
39
36
40
- # Install MKL
41
- ADD ./common/install_mkl.sh install_mkl.sh
42
- RUN bash ./install_mkl.sh && rm install_mkl.sh
43
-
44
37
# Install MAGMA (need CUDA)
45
38
ADD ./common/install_magma.sh install_magma.sh
46
39
RUN bash ./install_magma.sh 9.2 10.0 10.1 10.2 && rm install_magma.sh
Original file line number Diff line number Diff line change @@ -42,12 +42,8 @@ RUN bash ./install_cuda.sh ${BASE_CUDA_VERSION} && rm install_cuda.sh
42
42
43
43
FROM base as intel
44
44
# MKL
45
- RUN mkdir -p /opt/intel/lib
46
- WORKDIR /tmp
47
- RUN curl -fsSL https://anaconda.org/intel/mkl-static/2019.5/download/linux-64/mkl-static-2019.5-intel_281.tar.bz2 | tar xjv
48
- RUN mv lib/* /opt/intel/lib/
49
- RUN curl -fsSL https://anaconda.org/intel/mkl-include/2019.5/download/linux-64/mkl-include-2019.5-intel_281.tar.bz2 | tar xjv
50
- RUN mv include /opt/intel/
45
+ ADD ./common/install_mkl.sh install_mkl.sh
46
+ RUN bash ./install_mkl.sh && rm install_mkl.sh
51
47
52
48
# EPEL for cmake
53
49
FROM base as patchelf
You can’t perform that action at this time.
0 commit comments