-
-
Save chexov/cefb960264d1c7b17a8ebe9e7da98f0b to your computer and use it in GitHub Desktop.
Revisions
-
smitshilu revised this gist
Nov 29, 2017 . 1 changed file with 9 additions and 9 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -94,14 +94,14 @@ * export LD_LIBRARY_PATH=$DYLD_LIBRARY_PATH * export PATH=$DYLD_LIBRARY_PATH:$PATH * Start build ``` bazel build --config=cuda --config=opt --action_env PATH --action_env LD_LIBRARY_PATH --action_env DYLD_LIBRARY_PATH //tensorflow/tools/pip_package:build_pip_package ``` * Generate a wheel for installation ``` bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg ``` * Install tensorflow wheel ``` sudo pip install /tmp/tensorflow_pkg/tensorflow-1.4.0rc1-cp36-cp36m-macosx_10_7_x86_64.whl (File name depends on tensorflow version and python version) ``` -
smitshilu revised this gist
Nov 29, 2017 . 1 changed file with 12 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -93,7 +93,15 @@ * export DYLD_LIBRARY_PATH=/Users/__USERNAME__/lib:/usr/local/cuda/lib:/usr/local/cuda/extras/CUPTI/lib (Replace USERNAME with your machine username) * export LD_LIBRARY_PATH=$DYLD_LIBRARY_PATH * export PATH=$DYLD_LIBRARY_PATH:$PATH * Start build ``` bazel build --config=cuda --config=opt --action_env PATH --action_env LD_LIBRARY_PATH --action_env DYLD_LIBRARY_PATH //tensorflow/tools/pip_package:build_pip_package ``` * Generate a wheel for installation ``` bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg ``` * Install tensorflow wheel ``` sudo pip install /tmp/tensorflow_pkg/tensorflow-1.4.0rc1-cp36-cp36m-macosx_10_7_x86_64.whl (File name depends on tensorflow version and python version) ``` -
smitshilu renamed this gist
Nov 7, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ ### System information * OS - High Sierra 10.13 * Tensorflow - 1.4 * Xcode command line tools - 8.2 (Download from here: Xcode - Support - Apple Developer & Switch to different clang version: sudo xcode-select --switch/Library/Developer/CommandLineTools & check version: clang -v) * Cmake - 3.7 * Bazel - 0.7.0 * CUDA - 9 -
smitshilu revised this gist
Nov 7, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -90,7 +90,7 @@ ``` * Add following paths: * export CUDA_HOME=/usr/local/cuda * export DYLD_LIBRARY_PATH=/Users/__USERNAME__/lib:/usr/local/cuda/lib:/usr/local/cuda/extras/CUPTI/lib (Replace USERNAME with your machine username) * export LD_LIBRARY_PATH=$DYLD_LIBRARY_PATH * export PATH=$DYLD_LIBRARY_PATH:$PATH * bazel build --config=cuda --config=opt --action_env PATH --action_env LD_LIBRARY_PATH --action_env DYLD_LIBRARY_PATH //tensorflow/tools/pip_package:build_pip_package -
smitshilu revised this gist
Nov 7, 2017 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -89,6 +89,10 @@ Configuration finished ``` * Add following paths: * export CUDA_HOME=/usr/local/cuda * export DYLD_LIBRARY_PATH=/Users/__#USERNAME#__/lib:/usr/local/cuda/lib:/usr/local/cuda/extras/CUPTI/lib * export LD_LIBRARY_PATH=$DYLD_LIBRARY_PATH * export PATH=$DYLD_LIBRARY_PATH:$PATH * bazel build --config=cuda --config=opt --action_env PATH --action_env LD_LIBRARY_PATH --action_env DYLD_LIBRARY_PATH //tensorflow/tools/pip_package:build_pip_package * bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg * sudo pip install /tmp/tensorflow_pkg/tensorflow-1.4.0rc1-cp36-cp36m-macosx_10_7_x86_64.whl (File name depends on tensorflow version and python version) -
smitshilu revised this gist
Nov 7, 2017 . 1 changed file with 64 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -28,7 +28,68 @@ ### Steps: * Disable SIP (in recovery mode enter command: csrutil disable) * ./configure (Find CUDA compute value from https://developer.nvidia.com/cuda-gpus) ``` Smit-Shilu:tensorflow-build smitshilu$ ./configure You have bazel 0.7.0-homebrew installed. Please specify the location of python. [Default is /Users/smitshilu/anaconda3/bin/python]: Found possible Python library paths: /Users/smitshilu/anaconda3/lib/python3.6/site-packages Please input the desired Python library path to use. Default is [/Users/smitshilu/anaconda3/lib/python3.6/site-packages] Do you wish to build TensorFlow with Google Cloud Platform support? [Y/n]: n No Google Cloud Platform support will be enabled for TensorFlow. Do you wish to build TensorFlow with Hadoop File System support? [Y/n]: n No Hadoop File System support will be enabled for TensorFlow. Do you wish to build TensorFlow with Amazon S3 File System support? [Y/n]: n No Amazon S3 File System support will be enabled for TensorFlow. Do you wish to build TensorFlow with XLA JIT support? [y/N]: n No XLA JIT support will be enabled for TensorFlow. Do you wish to build TensorFlow with GDR support? [y/N]: n No GDR support will be enabled for TensorFlow. Do you wish to build TensorFlow with VERBS support? [y/N]: n No VERBS support will be enabled for TensorFlow. Do you wish to build TensorFlow with OpenCL support? [y/N]: n No OpenCL support will be enabled for TensorFlow. Do you wish to build TensorFlow with CUDA support? [y/N]: y CUDA support will be enabled for TensorFlow. Please specify the CUDA SDK version you want to use, e.g. 7.0. [Leave empty to default to CUDA 8.0]: 9.0 Please specify the location where CUDA 9.0 toolkit is installed. Refer to README.md for more details. [Default is /usr/local/cuda]: Please specify the cuDNN version you want to use. [Leave empty to default to cuDNN 6.0]: 7 Please specify the location where cuDNN 7 library is installed. Refer to README.md for more details. [Default is /usr/local/cuda]: Please specify a list of comma-separated Cuda compute capabilities you want to build with. You can find the compute capability of your device at: https://developer.nvidia.com/cuda-gpus. Please note that each additional compute capability significantly increases your build time and binary size. [Default is: 3.5,5.2]6.1 Do you want to use clang as CUDA compiler? [y/N]: nvcc will be used as CUDA compiler. Please specify which gcc should be used by nvcc as the host compiler. [Default is /usr/bin/gcc]: Do you wish to build TensorFlow with MPI support? [y/N]: No MPI support will be enabled for TensorFlow. Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified [Default is -march=native]: Add "--config=mkl" to your bazel command to build with MKL support. Please note that MKL on MacOS or windows is still not supported. If you would like to use a local MKL instead of downloading, please set the environment variable "TF_MKL_ROOT" every time before build. Configuration finished ``` * Add following paths: * bazel build --config=cuda --config=opt --action_env PATH --action_env LD_LIBRARY_PATH --action_env DYLD_LIBRARY_PATH //tensorflow/tools/pip_package:build_pip_package * bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg * sudo pip install /tmp/tensorflow_pkg/tensorflow-1.4.0rc1-cp36-cp36m-macosx_10_7_x86_64.whl (File name depends on tensorflow version and python version) -
smitshilu revised this gist
Nov 7, 2017 . 1 changed file with 8 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -23,5 +23,12 @@ * tensorflow/core/kernels/split_lib_gpu.cu.cc * tensorflow/core/kernels/concat_lib_gpu.impl.cu.cc For example, `extern shared __align(sizeof(T))__ unsigned char smem[];` => `extern shared unsigned char smem[];` ### Steps: * Disable SIP (in recovery mode enter command: csrutil disable) * ./configure (Find CUDA compute value from https://developer.nvidia.com/cuda-gpus) * * * -
smitshilu revised this gist
Nov 7, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -23,5 +23,5 @@ * tensorflow/core/kernels/split_lib_gpu.cu.cc * tensorflow/core/kernels/concat_lib_gpu.impl.cu.cc For example,` extern shared __align(sizeof(T))__ unsigned char smem[];` => `extern shared unsigned char smem[];` -
smitshilu revised this gist
Nov 7, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -23,5 +23,5 @@ * tensorflow/core/kernels/split_lib_gpu.cu.cc * tensorflow/core/kernels/concat_lib_gpu.impl.cu.cc For example, extern shared `_`_align(sizeof(T))`_`_ unsigned char smem[]; => extern shared unsigned char smem[]; -
smitshilu revised this gist
Nov 7, 2017 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -22,5 +22,6 @@ * tensorflow/core/kernels/depthwise_conv_op_gpu.cu.cc * tensorflow/core/kernels/split_lib_gpu.cu.cc * tensorflow/core/kernels/concat_lib_gpu.impl.cu.cc For example, extern shared /_/_align(sizeof(T))/_/_ unsigned char smem[]; => extern shared unsigned char smem[]; -
smitshilu revised this gist
Nov 7, 2017 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -22,3 +22,5 @@ * tensorflow/core/kernels/depthwise_conv_op_gpu.cu.cc * tensorflow/core/kernels/split_lib_gpu.cu.cc * tensorflow/core/kernels/concat_lib_gpu.impl.cu.cc For example, extern shared __align(sizeof(T))__ unsigned char smem[]; => extern shared unsigned char smem[]; -
smitshilu revised this gist
Nov 7, 2017 . 1 changed file with 5 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -17,3 +17,8 @@ * sudo pip install six numpy wheel * brew install coreutils ## Step-by-step guide ### Remove all __align__(sizeof(T)) from following files: * tensorflow/core/kernels/depthwise_conv_op_gpu.cu.cc * tensorflow/core/kernels/split_lib_gpu.cu.cc * tensorflow/core/kernels/concat_lib_gpu.impl.cu.cc -
smitshilu revised this gist
Nov 7, 2017 . 1 changed file with 0 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -14,8 +14,6 @@ ### Requirements * sudo pip install six numpy wheel * brew install coreutils -
smitshilu revised this gist
Nov 7, 2017 . 1 changed file with 0 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,17 +4,11 @@ ### System information * OS - High Sierra 10.13 * Tensorflow - 1.4 * Xcode command line tools - 7.2 (Download from here: Xcode - Support - Apple Developer & Switch to different clang version: sudo xcode-select --switch/Library/Developer/CommandLineTools & check version: clang -v) * Cmake - 3.7 * Bazel - 0.7.0 * CUDA - 9 * cuDNN - 7 -
smitshilu revised this gist
Nov 7, 2017 . 1 changed file with 9 additions and 9 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,25 +3,25 @@ ### System information * OS - High Sierra 10.13 * Tensorflow - 1.4 * Xcode command line tools - 7.2 (Download from here: Xcode - Support - Apple Developer & Switch to different clang version: sudo xcode-select --switch/Library/Developer/CommandLineTools & check version: clang -v) * Cmake - 3.7 * Bazel - 0.7.0 * CUDA - 9 * cuDNN - 7 ### Requirements * sudo pip install six numpy wheel * brew install coreutils -
smitshilu revised this gist
Nov 7, 2017 . 1 changed file with 8 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,18 +1,24 @@ # Tensorflow ### System information OS - High Sierra 10.13 Tensorflow - 1.4 Xcode command line tools - 7.2 (Download from here: Xcode - Support - Apple Developer & Switch to different clang version: sudo xcode-select --switch/Library/Developer/CommandLineTools & check version: clang -v) Cmake - 3.7 Bazel - 0.7.0 CUDA - 9 cuDNN - 7 ### Requirements *sudo pip install six numpy wheel -
smitshilu revised this gist
Nov 7, 2017 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ # Tensorflow ### System information OS - High Sierra 10.13 Tensorflow - 1.4 Xcode command line tools - 7.2 (Download from here: Xcode - Support - Apple Developer & Switch to different clang version: sudo xcode-select --switch/Library/Developer/CommandLineTools & check version: clang -v) @@ -13,7 +13,7 @@ cuDNN - 7 *** ### Requirements *sudo pip install six numpy wheel -
smitshilu revised this gist
Nov 7, 2017 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,8 @@ *** # Tensorflow **### System information** OS - High Sierra 10.13 Tensorflow - 1.4 Xcode command line tools - 7.2 (Download from here: Xcode - Support - Apple Developer & Switch to different clang version: sudo xcode-select --switch/Library/Developer/CommandLineTools & check version: clang -v) @@ -13,7 +13,7 @@ cuDNN - 7 *** **### Requirements** *sudo pip install six numpy wheel -
smitshilu revised this gist
Nov 7, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ *** # Tensorflow *** **System information** -
smitshilu revised this gist
Nov 7, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ *** #Tensorflow *** **System information** -
smitshilu revised this gist
Nov 7, 2017 . 1 changed file with 6 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,7 @@ *** #Tensorflow# *** **System information** OS - High Sierra 10.13 Tensorflow - 1.4 @@ -10,9 +13,9 @@ cuDNN - 7 *** **##Requirements##** *sudo pip install six numpy wheel *brew install coreutils -
smitshilu revised this gist
Nov 7, 2017 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,6 +11,8 @@ cuDNN - 7 *** **Requirements** ``*``sudo pip install six numpy wheel ``*``brew install coreutils -
smitshilu revised this gist
Nov 7, 2017 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,6 +11,6 @@ cuDNN - 7 *** **Requirements** ``*``sudo pip install six numpy wheel ``*``brew install coreutils -
smitshilu revised this gist
Nov 7, 2017 . 1 changed file with 12 additions and 10 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,14 +1,16 @@ *** **System information** OS - High Sierra 10.13 Tensorflow - 1.4 Xcode command line tools - 7.2 (Download from here: Xcode - Support - Apple Developer & Switch to different clang version: sudo xcode-select --switch/Library/Developer/CommandLineTools & check version: clang -v) Cmake - 3.7 Bazel - 0.7.0 CUDA - 9 cuDNN - 7 *** **Requirements** sudo pip install six numpy wheel brew install coreutils -
smitshilu revised this gist
Nov 7, 2017 . 1 changed file with 1 addition and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,8 +11,4 @@ Tensorflow Version 1.4 ** TF ** -
smitshilu revised this gist
Nov 7, 2017 . 1 changed file with 5 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,4 +11,8 @@ Tensorflow Version 1.4 ** TF ** @q #q !w 'q -
smitshilu revised this gist
Nov 6, 2017 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,8 @@ Specifications *Specifications* **Specifications** *** -
smitshilu revised this gist
Nov 6, 2017 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,7 @@ Specifications *Specifications **Specifications -
smitshilu revised this gist
Nov 6, 2017 . 1 changed file with 5 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,4 +5,8 @@ Specifications *** Tensorflow Version 1.4 *** ** TF ** -
smitshilu revised this gist
Nov 6, 2017 . 1 changed file with 6 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,8 @@ Specifications *Specifications# **Specifications *** Tensorflow Version 1.4 ***
NewerOlder