aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/common_runtime/process_util.cc
diff options
context:
space:
mode:
authorGravatar Xiaoming (Jason) Cui <xiaoming.cui@intel.com>2018-09-30 01:12:34 -0700
committerGravatar Xiaoming (Jason) Cui <xiaoming.cui@intel.com>2018-09-30 01:12:34 -0700
commit2b456a2b5dc6b5bb092b3986a400acb77b21a30f (patch)
tree6324d237ede010bb64df98a8d0c42942f60c46f7 /tensorflow/core/common_runtime/process_util.cc
parentd936d819752916d3122f02def571ecac9e995029 (diff)
Added some minor format changes
Diffstat (limited to 'tensorflow/core/common_runtime/process_util.cc')
-rw-r--r--tensorflow/core/common_runtime/process_util.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/tensorflow/core/common_runtime/process_util.cc b/tensorflow/core/common_runtime/process_util.cc
index b3064a4c08..c75d8a8ce6 100644
--- a/tensorflow/core/common_runtime/process_util.cc
+++ b/tensorflow/core/common_runtime/process_util.cc
@@ -62,15 +62,15 @@ int32 NumInterOpThreadsFromSessionOptions(const SessionOptions& options) {
// Set inter_op conservatively to avoid thread oversubscription that could
// lead to severe perf degradations and OMP resource exhaustion
int mkl_intra_op = 1;
- #ifdef _OPENMP
+#ifdef _OPENMP
mkl_intra_op = omp_get_max_threads();
- #endif // _OPENMP
+#endif // _OPENMP
CHECK_GE(mkl_intra_op, 1);
const int32 mkl_inter_op = std::max(
(port::NumSchedulableCPUs() + mkl_intra_op - 1) / mkl_intra_op, 2);
VLOG(0) << "Creating new thread pool with default inter op setting: "
<< mkl_inter_op
- << ". Tune using inter_op_parallelism_threads for best performance.";
+ << ".Tune using inter_op_parallelism_threads for best performance.";
return mkl_inter_op;
}
#endif // INTEL_MKL