diff options
author | wangjiezhe <wangjiezhe@gmail.com> | 2024-01-20 19:23:54 +0800 |
---|---|---|
committer | Jason Zaman <perfinion@gentoo.org> | 2024-02-03 11:33:00 -0800 |
commit | e17026a6281b2cbef77b066992a2d0b304c6929b (patch) | |
tree | d5db48fef03e00e103f0a225eeb9a47e8d819772 /sci-libs/tensorflow/files/tensorflow-2.15.0-0003-mkl_dnn-Must-link-against-libm-for-round-and-log2.patch | |
parent | sci-visualization/tensorboard: add 2.15.1 (diff) | |
download | gentoo-e17026a6281b2cbef77b066992a2d0b304c6929b.tar.gz gentoo-e17026a6281b2cbef77b066992a2d0b304c6929b.tar.bz2 gentoo-e17026a6281b2cbef77b066992a2d0b304c6929b.zip |
sci-libs/tensorflow: add 2.15.0
Signed-off-by: wangjiezhe <wangjiezhe@gmail.com>
Signed-off-by: Jason Zaman <perfinion@gentoo.org>
Diffstat (limited to 'sci-libs/tensorflow/files/tensorflow-2.15.0-0003-mkl_dnn-Must-link-against-libm-for-round-and-log2.patch')
-rw-r--r-- | sci-libs/tensorflow/files/tensorflow-2.15.0-0003-mkl_dnn-Must-link-against-libm-for-round-and-log2.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/sci-libs/tensorflow/files/tensorflow-2.15.0-0003-mkl_dnn-Must-link-against-libm-for-round-and-log2.patch b/sci-libs/tensorflow/files/tensorflow-2.15.0-0003-mkl_dnn-Must-link-against-libm-for-round-and-log2.patch new file mode 100644 index 000000000000..5ffab1f6c269 --- /dev/null +++ b/sci-libs/tensorflow/files/tensorflow-2.15.0-0003-mkl_dnn-Must-link-against-libm-for-round-and-log2.patch @@ -0,0 +1,29 @@ +From 51b47cec16b0818d47086b629fb361f90cca284a Mon Sep 17 00:00:00 2001 +From: Jason Zaman <jason@perfinion.com> +Date: Mon, 5 Sep 2022 12:52:44 -0700 +Subject: [PATCH 03/13] mkl_dnn: Must link against libm for round and log2 + +--- + third_party/mkl_dnn/mkldnn_v1.BUILD | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/third_party/mkl_dnn/mkldnn_v1.BUILD b/third_party/mkl_dnn/mkldnn_v1.BUILD +index e25a66db664..4185df77f3d 100644 +--- a/third_party/mkl_dnn/mkldnn_v1.BUILD ++++ b/third_party/mkl_dnn/mkldnn_v1.BUILD +@@ -165,9 +165,9 @@ cc_library( + includes = _INCLUDES_LIST, + # TODO(penpornk): Use lrt_if_needed from tensorflow.bzl instead. + linkopts = select({ +- "@local_tsl//tsl:linux_aarch64": ["-lrt"], +- "@local_tsl//tsl:linux_x86_64": ["-lrt"], +- "@local_tsl//tsl:linux_ppc64le": ["-lrt"], ++ "@local_tsl//tsl:linux_aarch64": ["-lrt", "-lm"], ++ "@local_tsl//tsl:linux_x86_64": ["-lrt", "-lm"], ++ "@local_tsl//tsl:linux_ppc64le": ["-lrt", "-lm"], + "//conditions:default": [], + }), + textual_hdrs = _TEXTUAL_HDRS_LIST, +-- +2.41.0 + |