编译 TensorFlow 时禁用 SSE4.1 [英] Disable SSE4.1 when compiling TensorFlow

查看:36
本文介绍了编译 TensorFlow 时禁用 SSE4.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照 TF 网站上的说明从源代码安装了 TensorFlow.我没有改变任何配置,都是默认值.

I followed the instruction on TF's website and install the TensorFlow from the source code. I did not change any configurations, all are the default values.

当我运行我的程序时(在使用预编译的 TensorFlow 0.12 轮子时运行良好),它给了我以下错误

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

<代码>F tensorflow/core/platform/cpu_feature_guard.cc:86] TensorFlow 库被编译为使用 SSE4.1 指令,但这些在您的机器上不可用.

TensorFlow 默认启用 SSE4 支持,我想有办法禁用它吗?感谢您提供任何意见.

By default TensorFlow enables SSE4 support, I guess there is a way to disable it? Thanks for any inputs.

推荐答案

tensorflow/tensorflow.bzl 中的 ">这一行 负责在所有 x86 构建中启用 SSE 4.1 指令.如果您删除该行,生成的构建应该可以在您的机器上运行.

This line in tensorflow/tensorflow.bzl is responsible for enabling SSE 4.1 instructions in all x86 builds. If you delete that line, the resulting build should work on your machine.

这篇关于编译 TensorFlow 时禁用 SSE4.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆