Commit f56e4766 authored by Sang Ik Lee's avatar Sang Ik Lee Committed by Scott Cyphers

Don't build mkl-dnn if user manually provides mkl-dnn. (#1018)

If user manully provide MKLDNN_INCLUDE_DIR and MKLDNN_LIB_DIR, don't
build mkl-dnn and just add a dummy external project "ext-_mkldnn" to
satisfy target dependency for the rest of the build.
parent 57fd873d
...@@ -21,6 +21,18 @@ include(ExternalProject) ...@@ -21,6 +21,18 @@ include(ExternalProject)
#---------------------------------------------------------------------------------------------------------- #----------------------------------------------------------------------------------------------------------
if(NGRAPH_CPU_ENABLE) if(NGRAPH_CPU_ENABLE)
# User provided mkl-dnn
if(MKLDNN_INCLUDE_DIR AND MKLDNN_LIB_DIR)
ExternalProject_Add(
ext_mkldnn
DOWNLOAD_COMMAND ""
UPDATE_COMMAND ""
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ""
)
return()
endif()
set(MKLDNN_GIT_REPO_URL https://github.com/intel/mkl-dnn) set(MKLDNN_GIT_REPO_URL https://github.com/intel/mkl-dnn)
set(MKLDNN_GIT_TAG "0e7ca73") set(MKLDNN_GIT_TAG "0e7ca73")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment