Skip to content

Instantly share code, notes, and snippets.

@spk921
Last active March 12, 2017 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spk921/1c841bc8b7f049aebb206b8817d2598f to your computer and use it in GitHub Desktop.
Save spk921/1c841bc8b7f049aebb206b8817d2598f to your computer and use it in GitHub Desktop.
install_tf_source

Install jdk 8.0 and bazel

follow here

Run configuration

 ./configure 

Creat pip while with bazel

skylake cpu 6800k

bazel build --copt=-mfma --copt=-mavx -c opt --config=cuda --copt=-mfpmath=both //tensorflow/tools/pip_package:build_pip_package
bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg/

TF1.0

bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package 
sudo pip install /tmp/tensorflow_pkg/tensorflow-1.0.1-py2-none-any.whl

Install with pip

sudo pip install /tmp/tensorflow_pkg/tensorflow-0.12.1-py2-none-any.whl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment