<pre style='margin:0'>
Chris Jones (cjones051073) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/d482d274177b5b455f9df051befbbdb2a70d0d4c">https://github.com/macports/macports-ports/commit/d482d274177b5b455f9df051befbbdb2a70d0d4c</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new d482d27 py-tensorflow: enable Intel MKL support by default on 10.12 and newer.
</span>d482d27 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit d482d274177b5b455f9df051befbbdb2a70d0d4c
</span>Author: Blair Zajac <blair@macports.org>
AuthorDate: Sun Sep 1 11:48:21 2019 -0700
<span style='display:block; white-space:pre;color:#404040;'> py-tensorflow: enable Intel MKL support by default on 10.12 and newer.
</span>---
python/py-tensorflow/Portfile | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-tensorflow/Portfile b/python/py-tensorflow/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 95dcaeb..c73f399 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-tensorflow/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-tensorflow/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -12,7 +12,7 @@ PortGroup conflicts_build 1.0
</span>
name py-tensorflow
version 1.14.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 4
</span> github.setup tensorflow tensorflow ${version} v
platforms darwin
supported_archs x86_64
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -50,6 +50,12 @@ if {${os.major} < 16} {
</span> patchfiles-append CLOCK_REALTIME-Older-OSX.patch
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+variant mkl description {Enable Intel Math Kernel Library support} { }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Enable MKL by default on 10.12 and newer.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.major} >= 16} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default_variants-append +mkl
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> variant native description {Build from source for best native platform support} { }
# Support python versions
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -169,6 +175,9 @@ if {${name} ne ${subport}} {
</span> set tf_bazel_build_opts "${tf_bazel_build_opts} --action_env CC=${configure.cc}"
set tf_bazel_cmd "BAZEL_USE_CPP_ONLY_TOOLCHAIN=1 ${tf_bazel_cmd}"
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[variant_isset mkl]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set tf_bazel_build_opts "${tf_bazel_build_opts} --config=mkl"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> if {![variant_isset native]} {
set tf_bazel_build_opts "${tf_bazel_build_opts} --copt=${base_march}"
set tf_bazel_cmd "CC_OPT_FLAGS=${base_march} ${tf_bazel_cmd}"
</pre><pre style='margin:0'>
</pre>