1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
|