Skip to content

Commit

Permalink
Both cmake and makefile use the same mkldnn commit hash
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomasz Patejko committed Mar 17, 2017
1 parent bf617d1 commit ad2e525
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile.mkldnn
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ MKLDNN_TMPDIR := $(MKLDNN_ROOTDIR)/tmp
MKLDNN_SRCDIR := $(MKLDNN_ROOTDIR)/src
MKLDNN_BUILDDIR := $(MKLDNN_ROOTDIR)/build
MKLDNN_INSTALLDIR := $(MKLDNN_ROOTDIR)/install
MKLDNN_COMMIT := 10acb154eba2b05e862c91d7bebfc32dee3bd236
MKLDNN_COMMIT := `cat ${CAFFE_ROOTDIR}/mkldnn.commit`
MKLDNN_CXX := $(CXX)
MKLDNN_CC := $(CC)

Expand Down
5 changes: 4 additions & 1 deletion cmake/MKLDNN.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@ function(Download_MKLDNN)
set(MKLDNN_SOURCE_DIR ${MKLDNN_DIR}/src)
set(MKLDNN_BUILD_DIR ${MKLDNN_DIR}/build)
set(MKLDNN_INSTALL_DIR ${MKLDNN_DIR}/install CACHE PATH "Installation path of MKLDNN")
execute_process(COMMAND cat mkldnn.commit
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
OUTPUT_VARIABLE MKLDNN_COMMIT)

ExternalProject_add(MKLDNN_Build
SOURCE_DIR ${MKLDNN_SOURCE_DIR}
CMAKE_ARGS -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DCMAKE_INSTALL_PREFIX=${MKLDNN_INSTALL_DIR} -DMKLROOT=${MKL_ROOT_DIR}
#--Download step
GIT_REPOSITORY https://github.com/01org/mkl-dnn.git
GIT_TAG 4c1d921bac0a10ef433ea5f667fdc7e4b04e1a4f
GIT_TAG ${MKLDNN_COMMIT}
#--Build step
BINARY_DIR ${MKLDNN_BUILD_DIR}
BUILD_COMMAND cmake ${MKLDNN_SOURCE_DIR}
Expand Down
1 change: 1 addition & 0 deletions mkldnn.commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4c1d921bac0a10ef433ea5f667fdc7e4b04e1a4f

0 comments on commit ad2e525

Please sign in to comment.