Disable SSE4.1 when compiling TensorFlow

I followed the instructions on the TF website and installed TensorFlow from the source code. I did not change the configurations, all the default values.

When I run my program (which works fine when using the pre-installed TensorFlow 0.12 wheel), it gives me the following error

F tensorflow/core/platform/cpu_feature_guard.cc:86] The TensorFlow library was compiled to use SSE4.1 instructions, but these aren't available on your machine.

By default, TensorFlow supports SSE4, I think there is a way to disable it? Thanks for any inputs.

+1
source share
1 answer

This line in tensorflow/tensorflow.bzlis responsible for including SSE 4.1 instructions in all x86 builds. If you delete this line, the resulting assembly should work on your computer.

+5
source

Source: https://habr.com/ru/post/1672787/


All Articles