diff options
author | vivek-rane <vivek.v.rane@intel.com> | 2017-02-24 10:44:28 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-24 10:44:28 -0800 |
commit | 493c5d16a69cc6aa887bb1e47676dd9fb87d9439 (patch) | |
tree | b03c7b90ea76d338538c492869c97310aa2b6ca0 /third_party/mkl/build_defs.bzl | |
parent | 9cf7bb30fee1cbaf920391b7c0111a762e64fd82 (diff) | |
parent | 904510eeaa40b0c8f982fbb679d827688cb35b01 (diff) |
Merge branch 'master' into mkl-matmul
Diffstat (limited to 'third_party/mkl/build_defs.bzl')
-rw-r--r-- | third_party/mkl/build_defs.bzl | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/third_party/mkl/build_defs.bzl b/third_party/mkl/build_defs.bzl index da89330c5a..9a28b312c2 100644 --- a/third_party/mkl/build_defs.bzl +++ b/third_party/mkl/build_defs.bzl @@ -1,13 +1,13 @@ -# Macros for building MKL code.
-
-def if_mkl(if_true, if_false = []):
- """Shorthand for select()'ing on whether we're building with MKL.
-
- Returns a select statement which evaluates to if_true if we're building
- with MKL enabled. Otherwise, the select statement evaluates to if_false.
-
- """
- return select({
- "//third_party/mkl:using_mkl": if_true,
- "//conditions:default": if_false
- })
+# Macros for building MKL code. + +def if_mkl(if_true, if_false = []): + """Shorthand for select()'ing on whether we're building with MKL. + + Returns a select statement which evaluates to if_true if we're building + with MKL enabled. Otherwise, the select statement evaluates to if_false. + + """ + return select({ + "//third_party/mkl:using_mkl": if_true, + "//conditions:default": if_false + }) |