tensorflow库没有编译为使用sse4,即使它是

时间:2017-07-17 16:47:09

标签: python tensorflow pip

当我构建我的pip包时,我按照说明使用优化in this post构建除了例外,我没有gpu,所以我没有用cuda构建。所以它看起来像这样:

$ bazel build -c opt --copt=-mavx --copt=-mavx2 --copt=-mfma --copt=-mfpmath=both 
        --copt=-msse4.2 -k //tensorflow/tools/pip_package:build_pip_package 

然后我按照说明在this question更新了我的pip包。当我试图再次运行我的代码时,我仍然得到以下警告。我在这里做错了什么想法?我错过了一步吗?

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.

当我跑步时,我也很担心:

$ bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg/

我收到以下警告:

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

更新:我在不在pip环境中时运行了代码(没有运行$ source bin/activate),而且当我这样做时我没有收到错误。

0 个答案:

没有答案
相关问题