diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2017-02-09 10:37:42 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-02-09 10:54:15 -0800 |
commit | 9683b095fce7b77df01d95ac3b07dcd17a083782 (patch) | |
tree | 121cbadd55b8b1623f442bdc46574dc71b619143 /third_party/mkl/build_defs.bzl | |
parent | 1d337e43faefabb582d61993ad088fa208e6fe60 (diff) |
Internal change.
Change: 147051664
Diffstat (limited to 'third_party/mkl/build_defs.bzl')
-rw-r--r-- | third_party/mkl/build_defs.bzl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/third_party/mkl/build_defs.bzl b/third_party/mkl/build_defs.bzl new file mode 100644 index 0000000000..e094f2fef7 --- /dev/null +++ b/third_party/mkl/build_defs.bzl @@ -0,0 +1,11 @@ +# 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 + }) |