Avoid setting unsupported "-fexceptions" with MSVC
PiperOrigin-RevId: 339107576 Change-Id: Ibf8ccf481ce604f6789220b59b6cb8e0f1ffa92f
This commit is contained in:
parent
237c3268e9
commit
0e8ea85a42
6
third_party/mkl_dnn/mkldnn.BUILD
vendored
6
third_party/mkl_dnn/mkldnn.BUILD
vendored
@ -57,8 +57,10 @@ cc_library(
|
||||
"src/cpu/xbyak/*.h",
|
||||
]) + [":mkldnn_version_h"],
|
||||
hdrs = glob(["include/*"]),
|
||||
copts = [
|
||||
"-fexceptions",
|
||||
copts = select({
|
||||
"@org_tensorflow//tensorflow:windows": [],
|
||||
"//conditions:default": ["-fexceptions"],
|
||||
}) + [
|
||||
"-DMKLDNN_THR=MKLDNN_THR_SEQ", # Disables threading.
|
||||
],
|
||||
includes = [
|
||||
|
6
third_party/mkl_dnn/mkldnn_v1.BUILD
vendored
6
third_party/mkl_dnn/mkldnn_v1.BUILD
vendored
@ -77,8 +77,10 @@ cc_library(
|
||||
":dnnl_version_h",
|
||||
],
|
||||
hdrs = glob(["include/*"]),
|
||||
copts = [
|
||||
"-fexceptions",
|
||||
copts = select({
|
||||
"@org_tensorflow//tensorflow:windows": [],
|
||||
"//conditions:default": ["-fexceptions"],
|
||||
}) + [
|
||||
"-UUSE_MKL",
|
||||
"-UUSE_CBLAS",
|
||||
] + tf_openmp_copts(),
|
||||
|
Loading…
Reference in New Issue
Block a user