diff options
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 + |