message: This PR tempers the unused CPU instruction warning when TensorFlow is built with support for Intel(R) MKL-DNN. Many customers have complained about this warning because they don't understand that MKL-DNN has support for JIT compilation that detects CPU features at runtime.
diff: @@ -139,7 +139,19 @@ void InfoAboutUnusedCPUFeatures() {
  #endif // else of if defined(_MSC_VER) && !defined(__clang__)
  if (!missing_instructions.empty()) {
  LOG(INFO) << "Your CPU supports instructions that this TensorFlow "
  +#ifndef INTEL_MKL
  << "binary was not compiled to use:" << missing_instructions;
  +#else
  + << "binary was not compiled to use:" << missing_instructions
  + << ". When TensorFlow is compiled with support for these "
  + << "instructions, performance can improve. However, because "
  + << "this version of TensorFlow has been compiled with support "
  + << "for Intel(R) MKL-DNN, which supports just-in-time "
  + << "compilation, many performance-critical codepaths will use "
  + << "these instructions, even though TensorFlow was compiled "
  + << "without explicit support them. See "
  + << "https://github.com/intel/mkl-dnn/issues/3";
  +#endif
  }
  });
  }
  