yaroslavvb / tensorflow-community-wheels

Place to upload links to TensorFlow wheels
452 stars 35 forks source link

Sep 22 head, Ubuntu 16.04 GPU+XLA+AVX2/FMA #35

Open yaroslavvb opened 7 years ago

yaroslavvb commented 7 years ago

To install pip install --upgrade https://storage.googleapis.com/tensorflow-community-wheels/sep22.xla/tensorflow-1.3.0-cp35-cp35m-linux_x86_64.whl

Packaging notes:

cd ~/d/git0/tensorflow
export flags="--config=opt --config=cuda --symlink_prefix=$HOME/temp/git0_tensorflow/  -k"
echo $flags
bazel build $flags //tensorflow/tools/pip_package:build_pip_package

cd /home/yaroslav/temp/git0_tensorflow/
ln -s bin bazel-bin
ln -s bin bazel-genfiles
ln -s bin bazel-out
ln -s bin bazel-testlogs
mv tensorflow tensorflow_
ln -s ~/git0/tensorflow/tensorflow tensorflow
ln -s ~/git0/tensorflow/tools tools

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

# check capabilities
gcc -march=native -Q --help=target | grep enable

# copy locally
bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg
export date=sep22
export tag=xla
mkdir -p ~/g/tfbins/$date.$tag
cp `find /tmp/tensorflow_pkg -type f ` ~/g/tfbins/$date.$tag

export wheel=`find ~/g/tfbins/$date.$tag -type f`
# linux only
export basename=`find ~/g/tfbins/$date.$tag -type f -printf "%f\n"`
pushd ~/g/tfbins/$date.$tag

export fullname=$date.$tag.$basename
ln -s $basename $fullname
export bucket=tensorflow-community-wheels

# setup gsutil
curl https://sdk.cloud.google.com | bash

gsutil cp $basename gs://$bucket/$date.$tag/$basename
gsutil acl set public-read gs://$bucket/$date.$tag/$basename
# gsutil acl set public-read gs://$bucket/$fullname
# echo https://storage.googleapis.com/tensorflow-community-wheels/$fullname
echo https://storage.googleapis.com/$bucket/$date.$tag/$basename
https://storage.googleapis.com/tensorflow-community-wheels/sep22.xla/tensorflow-1.3.0-cp35-cp35m-linux_x86_64.whl

# test it
conda create -n sep22 --clone sep13
source activate sep22
pip install -I setuptools
pip install --upgrade $basename
tfversion
matthiasplappert commented 7 years ago

I'm very much interested in this wheel; however it seems like the link does not work (Access denied). Would it be possible for you to update/fix the link?