<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/33382f5c70364a442c19190fafd0ec12b3677696">https://github.com/macports/macports-ports/commit/33382f5c70364a442c19190fafd0ec12b3677696</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 33382f5c70364a442c19190fafd0ec12b3677696
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Fri Mar 31 09:19:02 2023 +1100
<span style='display:block; white-space:pre;color:#404040;'> py-pytorch: disable -Werror use in fbgemm
</span>---
python/py-pytorch/Portfile | 3 +++
python/py-pytorch/files/Werror.patch | 10 ++++++++++
2 files changed, 13 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-pytorch/Portfile b/python/py-pytorch/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index e42f3e00194..5b3b45a102d 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-pytorch/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-pytorch/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -132,6 +132,9 @@ if {${name} ne ${subport}} {
</span> # diff -NaurdwB ./py-pytorch-orig/c10/util/Logging.cpp ./py-pytorch-new/c10/util/Logging.cpp | sed -E -e 's/\.\/py-pytorch-(orig|new)/\.\//' | sed -E -e 's|/opt/local|@@PREFIX@@|g' > ~/Downloads/patch-glog-init-check.diff
patchfiles-append patch-glog-init-check.diff
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Disable -Werror in third_party/fbgemm
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append Werror.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # Use Intel Math kernel Library
if {[variant_isset mkl]} {
patchfiles-append FindMKL-OMP.patch
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-pytorch/files/Werror.patch b/python/py-pytorch/files/Werror.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..eafa1778d92
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-pytorch/files/Werror.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- a/third_party/fbgemm/CMakeLists.txt.orig 2023-03-31 09:12:01
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ b/third_party/fbgemm/CMakeLists.txt 2023-03-31 09:14:00
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -144,7 +144,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else(MSVC)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ string(APPEND CMAKE_CXX_FLAGS " -Wall")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ string(APPEND CMAKE_CXX_FLAGS " -Wextra")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- string(APPEND CMAKE_CXX_FLAGS " -Werror")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ string(APPEND CMAKE_CXX_FLAGS " -Wno-deprecated-declarations")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ target_compile_options(fbgemm_avx2 PRIVATE
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "-m64" "-mavx2" "-mf16c" "-mfma")
</span></pre><pre style='margin:0'>
</pre>