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 | |
parent | 1d337e43faefabb582d61993ad088fa208e6fe60 (diff) |
Internal change.
Change: 147051664
Diffstat (limited to 'third_party/mkl')
-rw-r--r-- | third_party/mkl/BUILD | 19 | ||||
-rw-r--r-- | third_party/mkl/build_defs.bzl | 11 |
2 files changed, 30 insertions, 0 deletions
diff --git a/third_party/mkl/BUILD b/third_party/mkl/BUILD new file mode 100644 index 0000000000..ddaf29a086 --- /dev/null +++ b/third_party/mkl/BUILD @@ -0,0 +1,19 @@ +licenses(["restricted"]) # MPL2, portions GPL v3, LGPL v3, BSD-like TODO + +config_setting( + name = "using_mkl", + values = { + "define": "using_mkl=true", + }, + visibility = ["//visibility:public"], +) + +cc_library( + name = "intel_binary_blob", + srcs = [ + "libiomp5.so", + "libmklml_intel.so", + ], + includes = ["."], + visibility = ["//visibility:public"], +) 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 + }) |