11#! /bin/sh
22# set -ex
3- #
3+ #
44# All modification made by Intel Corporation: © 2016 Intel Corporation
5- #
5+ #
66# All contributions by the University of California:
77# Copyright (c) 2014, 2015, The Regents of the University of California (Regents)
88# All rights reserved.
9- #
9+ #
1010# All other contributions:
1111# Copyright (c) 2014, 2015, the respective contributors
1212# All rights reserved.
1313# For the list of contributors go to https://github.com/BVLC/caffe/blob/master/CONTRIBUTORS.md
14- #
15- #
14+ #
15+ #
1616# Redistribution and use in source and binary forms, with or without
1717# modification, are permitted provided that the following conditions are met:
18- #
18+ #
1919# * Redistributions of source code must retain the above copyright notice,
2020# this list of conditions and the following disclaimer.
2121# * Redistributions in binary form must reproduce the above copyright
2424# * Neither the name of Intel Corporation nor the names of its contributors
2525# may be used to endorse or promote products derived from this software
2626# without specific prior written permission.
27- #
27+ #
2828# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
2929# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
3030# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
3434# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
3535# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
3636# 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+ #
3939FindLibrary ()
4040{
4141# Find all the instances of the MKL libraries present in Caffe
4242 MKL_LIBS=` find $1 -name libmklml_intel.so`
4343
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.
4545# Cut out everything but build date tagged with __INTEL_MKL_BUILD_DATE.
4646# The format of sorted lines is: "build_date:path_to_mkl_lib/include/mkl_version.h".
4747# 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
7373
7474# MKL
7575DST=` 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
7979MKL_CONTENT_DIR=` echo $ARCHIVE_BASENAME | rev | cut -d " ." -f 2- | rev`
8080
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 "
8282# there are diffrent MKL lib to be used for GCC and for ICC
8383reg=' ^[0-9]+$'
8484VERSION_LINE=` GetVersionName $MKLROOT `
@@ -103,12 +103,12 @@ if [ -z `find $MKLROOT -name libmkl_rt.so -print -quit` ]; then
103103# LOCALMKL is not set, when MKLROOT was set manually and it points to MKLML in correct version
104104 FindLibrary $MKLROOT
105105 fi
106-
106+
107107 LIBRARIES=` basename $LOCALMKL | sed -e ' s/^.*lib//' | sed -e ' s/\.so.*$//' `
108108 OMP=1
109109else
110110 LIBRARIES=" mkl_rt"
111- fi
111+ fi
112112
113113# return value to calling script (Makefile,cmake)
114114echo $MKLROOT $LIBRARIES $OMP
0 commit comments