aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/util/port.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/core/util/port.cc')
-rw-r--r--tensorflow/core/util/port.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/core/util/port.cc b/tensorflow/core/util/port.cc
index c081ceae57..e01058dff6 100644
--- a/tensorflow/core/util/port.cc
+++ b/tensorflow/core/util/port.cc
@@ -38,10 +38,10 @@ bool CudaSupportsHalfMatMulAndConv() {
}
bool IsMklEnabled() {
-#ifdef INTEL_MKL
+#if defined(INTEL_MKL) && defined(ENABLE_MKL)
return true;
#else
return false;
-#endif
+#endif // INTEL_MKL && ENABLE_MKL
}
} // end namespace tensorflow