TensorFlow on Intel Xeon Phi

TensorFlow on Intel Xeon Phi

Hi All,

I am building TensorFlow by following this article. Everything is setup, but I don't get the option to enabled MKL support. I think the option should show during configuration stage not as an argument to bazel as per below comment in the linked article:

Important: Select ‘Y’ to build TensorFlow with Intel MKL support, and ‘Y’ to download MKL LIB from the web.

google-tensorflow$ sudo ./configure
You have bazel 0.5.4- (@non-git) installed.
Please specify the location of python. [Default is /bin/python]:


Found possible Python library paths:
  /usr/lib/python2.7/site-packages
  /usr/lib64/python2.7/site-packages
Please input the desired Python library path to use.  Default is [/usr/lib/python2.7/site-packages]

Do you wish to build TensorFlow with jemalloc as malloc support? [Y/n]:
jemalloc as malloc support will be enabled for TensorFlow.

Do you wish to build TensorFlow with Google Cloud Platform support? [y/N]:
No Google Cloud Platform support will be enabled for TensorFlow.

Do you wish to build TensorFlow with Hadoop File System support? [y/N]:
No Hadoop File System support will be enabled for TensorFlow.

Do you wish to build TensorFlow with XLA JIT support? [y/N]:
No XLA JIT support will be enabled for TensorFlow.

Do you wish to build TensorFlow with GDR support? [y/N]:
No GDR support will be enabled for TensorFlow.

Do you wish to build TensorFlow with VERBS support? [y/N]:
No VERBS support will be enabled for TensorFlow.

Do you wish to build TensorFlow with OpenCL support? [y/N]:
No OpenCL support will be enabled for TensorFlow.

Do you wish to build TensorFlow with CUDA support? [y/N]:
No CUDA support will be enabled for TensorFlow.

Do you wish to build TensorFlow with MPI support? [y/N]:
No MPI support will be enabled for TensorFlow.

Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified [Default is -march=native]:


Add "--config=mkl" to your bazel command to build with MKL support.
Please note that MKL on MacOS or windows is still not supported.
If you would like to use a local MKL instead of downloading, please set the environment variable "TF_MKL_ROOT" every time before build.
Configuration finished

Thanks.

4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Hi Chetan,

     As per Tensorflow team, for version 1.3 and above, the MKL-ML is downloaded as a part of bazel build when --config=mkl

option is used. Earlier it used to be downloaded as a part of configure.

 

Thanks

Ravi Keron N

Hi Chetan,

     Is your query answered? Please let me know.

Thanks

Ravi Keron N

Hi Ravi,

Yes.

Thanks.

Leave a Comment

Please sign in to add a comment. Not a member? Join today