Adds a build flag to enable MKL (mkl_enabled=true).

PiperOrigin-RevId: 214557082
This commit is contained in:
A. Unique TensorFlower
2018-09-25 22:57:54 -07:00
committed by TensorFlower Gardener
parent f2b17b22e1
commit c63d21b0bf
24 changed files with 123 additions and 75 deletions

View File

@@ -24,12 +24,13 @@ build --define framework_shared_object=true
# Please note that MKL on MacOS or windows is still not supported.
# If you would like to use a local MKL instead of downloading, please set the
# environment variable "TF_MKL_ROOT" every time before build.
build:mkl --define=using_mkl=true
build:mkl --define=build_with_mkl=true --define=enable_mkl=true
build:mkl -c opt
# This config option is used to enable MKL-DNN open source library only,
# without depending on MKL binary version.
build:mkl_open_source_only --define=using_mkl_dnn_only=true
build:mkl_open_source_only --define=build_with_mkl_dnn_only=true
build:mkl_open_source_only --define=build_with_mkl=true --define=enable_mkl=true
build:download_clang --crosstool_top=@local_config_download_clang//:toolchain
build:download_clang --define=using_clang=true