1
1
#! /bin/sh
2
2
# set -ex
3
- #
3
+ #
4
4
# All modification made by Intel Corporation: © 2016 Intel Corporation
5
- #
5
+ #
6
6
# All contributions by the University of California:
7
7
# Copyright (c) 2014, 2015, The Regents of the University of California (Regents)
8
8
# All rights reserved.
9
- #
9
+ #
10
10
# All other contributions:
11
11
# Copyright (c) 2014, 2015, the respective contributors
12
12
# All rights reserved.
13
13
# For the list of contributors go to https://github.com/BVLC/caffe/blob/master/CONTRIBUTORS.md
14
- #
15
- #
14
+ #
15
+ #
16
16
# Redistribution and use in source and binary forms, with or without
17
17
# modification, are permitted provided that the following conditions are met:
18
- #
18
+ #
19
19
# * Redistributions of source code must retain the above copyright notice,
20
20
# this list of conditions and the following disclaimer.
21
21
# * Redistributions in binary form must reproduce the above copyright
24
24
# * Neither the name of Intel Corporation nor the names of its contributors
25
25
# may be used to endorse or promote products derived from this software
26
26
# without specific prior written permission.
27
- #
27
+ #
28
28
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
29
29
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
30
30
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
34
34
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
35
35
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
36
36
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
37
- # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38
- #
37
+ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38
+ #
39
39
FindLibrary ()
40
40
{
41
41
# Find all the instances of the MKL libraries present in Caffe
42
42
MKL_LIBS=` find $1 -name libmklml_intel.so`
43
43
44
- # Sort libraries based on build date in $MKL/include/mkl_version.h.
44
+ # Sort libraries based on build date in $MKL/include/mkl_version.h.
45
45
# Cut out everything but build date tagged with __INTEL_MKL_BUILD_DATE.
46
46
# The format of sorted lines is: "build_date:path_to_mkl_lib/include/mkl_version.h".
47
47
# Sort lines based on the first column (build_date), in reversed order (the recent on the top).
@@ -73,12 +73,12 @@ echo $VERSION_LINE # Return Version Line
73
73
74
74
# MKL
75
75
DST=` dirname $0 `
76
- OMP=0
77
- VERSION_MATCH=20180928
78
- ARCHIVE_BASENAME=mklml_lnx_2019.0.1.20180928 .tgz
76
+ OMP=0
77
+ VERSION_MATCH=20190220
78
+ ARCHIVE_BASENAME=mklml_lnx_2019.0.3.20190220 .tgz
79
79
MKL_CONTENT_DIR=` echo $ARCHIVE_BASENAME | rev | cut -d " ." -f 2- | rev`
80
80
81
- MKLURL=" https://github.com/intel/mkl-dnn/releases/download/v0.17 /$ARCHIVE_BASENAME "
81
+ MKLURL=" https://github.com/intel/mkl-dnn/releases/download/v0.18 /$ARCHIVE_BASENAME "
82
82
# there are diffrent MKL lib to be used for GCC and for ICC
83
83
reg=' ^[0-9]+$'
84
84
VERSION_LINE=` GetVersionName $MKLROOT `
@@ -103,12 +103,12 @@ if [ -z `find $MKLROOT -name libmkl_rt.so -print -quit` ]; then
103
103
# LOCALMKL is not set, when MKLROOT was set manually and it points to MKLML in correct version
104
104
FindLibrary $MKLROOT
105
105
fi
106
-
106
+
107
107
LIBRARIES=` basename $LOCALMKL | sed -e ' s/^.*lib//' | sed -e ' s/\.so.*$//' `
108
108
OMP=1
109
109
else
110
110
LIBRARIES=" mkl_rt"
111
- fi
111
+ fi
112
112
113
113
# return value to calling script (Makefile,cmake)
114
114
echo $MKLROOT $LIBRARIES $OMP
0 commit comments