Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Commit 648cbf4

Browse files
author
Roman Dubtsov
committed
Default to TF threading for MKL-DNN
1 parent a34141d commit 648cbf4

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.bazelrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,15 @@ build --define framework_shared_object=true
2626
# environment variable "TF_MKL_ROOT" every time before build.
2727
build:mkl --define=build_with_mkl=true --define=enable_mkl=true
2828
build:mkl --define=tensorflow_mkldnn_contraction_kernel=0
29+
build:mkl --define mkl_dnn_threading=tf
2930
build:mkl -c opt
3031

3132
# This config option is used to enable MKL-DNN open source library only,
3233
# without depending on MKL binary version.
3334
build:mkl_open_source_only --define=build_with_mkl_dnn_only=true
3435
build:mkl_open_source_only --define=build_with_mkl=true --define=enable_mkl=true
3536
build:mkl_open_source_only --define=tensorflow_mkldnn_contraction_kernel=0
37+
build:mkl_open_source_only --define mkl_dnn_threading=tf
3638

3739
build:download_clang --crosstool_top=@local_config_download_clang//:toolchain
3840
build:download_clang --define=using_clang=true

tensorflow/workspace.bzl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,11 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""):
118118
tf_http_archive(
119119
name = "mkl_dnn",
120120
build_file = clean_dep("//third_party/mkl_dnn:mkldnn.BUILD"),
121-
sha256 = "bd406f4d9d004be270818449d010fe6cecd27af8cd465b5ec5e596905b45bb0d",
122-
strip_prefix = "mkl-dnn-e842faaaf053c4e2926c3f857944c9837366c731",
121+
sha256 = "ad1eff102f30e44d75c25abab118428f8c93d0b5bb28bb235d2df36acc7b54bf",
122+
strip_prefix = "mkl-dnn-0154b64533a9d3f9f711ffadc967d6ed6fc59205",
123123
urls = [
124-
"https://mirror.bazel.build/github.com/rsdubtso/mkl-dnn/archive/e842faaaf053c4e2926c3f857944c9837366c731.tar.gz",
125-
"https://github.com/rsdubtso/mkl-dnn/archive/e842faaaf053c4e2926c3f857944c9837366c731.tar.gz",
124+
"https://mirror.bazel.build/github.com/rsdubtso/mkl-dnn/archive/0154b64533a9d3f9f711ffadc967d6ed6fc59205.tar.gz",
125+
"https://github.com/rsdubtso/mkl-dnn/archive/0154b64533a9d3f9f711ffadc967d6ed6fc59205.tar.gz",
126126
],
127127
)
128128

0 commit comments

Comments
 (0)