1. 程式人生 > >從原始碼安裝tensorflow

從原始碼安裝tensorflow

bazel build -c opt --copt=-mavx --copt=-march=native  --copt=-mfpmath=both --copt=-msse4.2  //tensorflow/tools/pip_package:build_pip_package


bazel build -c opt --copt=-mavx --copt=-msse4.1 --copt=-msse4.2  -k //tensorflow/tools/pip_package:build_pip_package //起不到加速的效果


bazel build -c opt --copt=-mavx --copt=-march=native  --copt=-mfpmath=both --copt=-msse4.1 --copt=-msse4.2  -k //tensorflow/tools/pip_package:build_pip_package  //起不到加速的效果


bazel build -c opt --copt=-mavx  --copt=-mfpmath=both --copt=-msse4.2  //tensorflow/tools/pip_package:build_pip_package  //起不到加速的效果


bazel build -c opt --copt=-mavx --copt=-msse4.1 --copt=-msse4.2  -k //tensorflow/tools/pip_package:build_pip_package


bazel build -c opt --copt=-march=native --copt=-mfpmath=both --copt=-msse4.2 //tensorflow/tools/pip_package:build_pip_package ///起不到加速的效果


bazel build -c opt --copt=-march=native --copt=-mfpmath=both --copt=-msse4.1 --copt=-msse4.2 //tensorflow/tools/pip_package:build_pip_package //起不到加速的效果


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


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


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


bazel build -c opt --copt=-mavx --copt=-mfpmath=both --copt=-msse4.1 --copt=-msse4.2  -k //tensorflow/tools/pip_package:build_pip_package //不要march=native