Setting default openmp settings for MKL kernels (#19136)
authorJayaram Bobba <jayaram.bobba@intel.com>
Tue, 22 May 2018 19:03:24 +0000 (12:03 -0700)
committerRasmus Munk Larsen <rmlarsen@google.com>
Tue, 22 May 2018 19:03:24 +0000 (12:03 -0700)
commitc36266e1ed6bf632408461844fe3e8ef21f32839
treeb5fd8bf8cb88a72c21fd3e563fa32d86b3277094
parent4dbaa658e78a3dcbbd5c65449a3612b70dd8b22e
Setting default openmp settings for MKL kernels (#19136)

* Change inter op defaults when built with MKL to avoid thread oversubscription

* Bump up default mkl inter_op to be less conservative

* Added default OMP settings that are expected to give reasonable performance when using MKL kernels

* Query CPUID for determining number of hyperthreads per physical core on Intel 64 architectures

* Style fixes

* Buildifier and clang-format style fixes

* Removed use of setenv due to concerns about thread safety
tensorflow/core/BUILD
tensorflow/core/common_runtime/mkl_threadpool_device_test.cc [new file with mode: 0644]
tensorflow/core/common_runtime/process_util.cc
tensorflow/core/common_runtime/threadpool_device.cc
tensorflow/core/platform/cpu_info.cc
tensorflow/core/platform/cpu_info.h
tensorflow/core/platform/posix/port.cc