When I built my pip package, I followed the instructions to build with the optimizations in this post With the exception, that I don't have a gpu, so I didn't build with cuda. So it looked like this:
$ bazel build -c opt --copt=-mavx --copt=-mavx2 --copt=-mfma --copt=-mfpmath=both
--copt=-msse4.2 -k //tensorflow/tools/pip_package:build_pip_package
I then followed the instructions to update my pip package in this question. When I attempted to run my code again, I STILL get the following warnings. Any ideas what I'm doing wrong here? Is there a step I missed?
2017-07-17 10:35:27.394699: W tensorflow/core/platform/cpu_feature_guard.cc:45]
The TensorFlow library wasn\'t compiled to use SSE4.1 instructions, but these are
available on your machine and could speed up CPU computations.
2017-07-17 10:35:27.394722: W tensorflow/core/platform/cpu_feature_guard.cc:45]
The TensorFlow library wasn\'t compiled to use SSE4.2 instructions, but these are
available on your machine and could speed up CPU computations.
2017-07-17 10:35:27.394728: W tensorflow/core/platform/cpu_feature_guard.cc:45]
The TensorFlow library wasn\'t compiled to use AVX instructions, but these are
available on your machine and could speed up CPU computations.
2017-07-17 10:35:27.394733: W tensorflow/core/platform/cpu_feature_guard.cc:45]
The TensorFlow library wasn\'t compiled to use AVX2 instructions, but these are
available on your machine and could speed up CPU computations.
2017-07-17 10:35:27.394742: W tensorflow/core/platform/cpu_feature_guard.cc:45]
The TensorFlow library wasn\'t compiled to use FMA instructions, but these are
available on your machine and could speed up CPU computations.
I am also worried that when I run:
$ bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg/
I get the following warnings:
Mon Jul 17 10:29:56 MDT 2017 : === Building wheel
warning: no files found matching '*.dll' under directory '*'
warning: no files found matching '*.lib' under directory '*'
warning: no files found matching '*.h' under directory 'tensorflow/include/tensorflow'
warning: no files found matching '*' under directory 'tensorflow/include/Eigen'
warning: no files found matching '*' under directory 'tensorflow/include/external'
warning: no files found matching '*.h' under directory 'tensorflow/include/google'
warning: no files found matching '*' under directory 'tensorflow/include/third_party'
warning: no files found matching '*' under directory 'tensorflow/include/unsupported'
~/mlp-va/src/github.com/tensorflow/tensorflow
UPDATE: I ran code while I wasn't in the pip environment (Without running $ source bin/activate
), and I don't get the errors when I do that.