Created
December 3, 2018 06:08
-
-
Save ontheklaud/97f0b5fbb44256125af9199444162b8b to your computer and use it in GitHub Desktop.
tf1.10.1 build on CentOS 7 for CPU/CUDA optimization
This file contains 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 characters
[user@host tensorflow-1.10.1]$ source activate tf110 | |
(tf110) [user@host tensorflow-1.10.1]$ ./configure | |
WARNING: An illegal reflective access operation has occurred | |
WARNING: Illegal reflective access by com.google.protobuf.UnsafeUtil (file:/home/user/.cache/bazel/_bazel_user/install/792a28b07894763eaa2bd870f8776b23/_embedded_binaries/A-server.jar) to field java.lang.String.value | |
WARNING: Please consider reporting this to the maintainers of com.google.protobuf.UnsafeUtil | |
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations | |
WARNING: All illegal access operations will be denied in a future release | |
WARNING: --batch mode is deprecated. Please instead explicitly shut down your Bazel server using the command "bazel shutdown". | |
You have bazel 0.17.2 installed. | |
Please specify the location of python. [Default is /home/user/anaconda3/envs/tf110/bin/python]: <ENTER> | |
Found possible Python library paths: | |
/home/user/anaconda3/envs/tf110/lib/python3.6/site-packages | |
Please input the desired Python library path to use. Default is [/home/user/anaconda3/envs/tf110/lib/python3.6/site-packages] <ENTER> | |
Do you wish to build TensorFlow with jemalloc as malloc support? [Y/n]: <ENTER> | |
jemalloc as malloc support will be enabled for TensorFlow. | |
Do you wish to build TensorFlow with Google Cloud Platform support? [Y/n]: <ENTER> | |
Google Cloud Platform support will be enabled for TensorFlow. | |
Do you wish to build TensorFlow with Hadoop File System support? [Y/n]: <ENTER> | |
Hadoop File System support will be enabled for TensorFlow. | |
Do you wish to build TensorFlow with Amazon AWS Platform support? [Y/n]: <ENTER> | |
Amazon AWS Platform support will be enabled for TensorFlow. | |
Do you wish to build TensorFlow with Apache Kafka Platform support? [Y/n]: <ENTER> | |
Apache Kafka Platform support will be enabled for TensorFlow. | |
Do you wish to build TensorFlow with XLA JIT support? [y/N]: <ENTER> | |
No XLA JIT support will be enabled for TensorFlow. | |
Do you wish to build TensorFlow with GDR support? [y/N]: <ENTER> | |
No GDR support will be enabled for TensorFlow. | |
Do you wish to build TensorFlow with VERBS support? [y/N]: <ENTER> | |
No VERBS support will be enabled for TensorFlow. | |
Do you wish to build TensorFlow with OpenCL SYCL support? [y/N]: <ENTER> | |
No OpenCL SYCL 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. [Leave empty to default to CUDA 9.0]: <ENTER> | |
Please specify the location where CUDA 9.0 toolkit is installed. Refer to README.md for more details. [Default is /usr/local/cuda]: <ENTER> | |
Please specify the cuDNN version you want to use. [Leave empty to default to cuDNN 7.0]: 7.2.1 | |
Please specify the location where cuDNN 7 library is installed. Refer to README.md for more details. [Default is /usr/local/cuda]: <ENTER> | |
Do you wish to build TensorFlow with TensorRT support? [y/N]: <ENTER> | |
No TensorRT support will be enabled for TensorFlow. | |
Please specify the NCCL version you want to use. If NCCL 2.2 is not installed, then you can use version 1.3 that can be fetched automatically but it may have worse performance with multiple GPUs. [Default is 2.2]: <ENTER> | |
Please specify the location where NCCL 2 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: 6.1,6.1] | |
Do you want to use clang as CUDA compiler? [y/N]: <ENTER> | |
nvcc will be used as CUDA compiler. | |
Please specify which gcc should be used by nvcc as the host compiler. [Default is /home/user/opt/gcc-8.2.0/bin/gcc]: | |
Do you wish to build TensorFlow with MPI support? [y/N]: <ENTER> | |
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]: | |
Would you like to interactively configure ./WORKSPACE for Android builds? [y/N]: <ENTER> | |
Not configuring the WORKSPACE for Android builds. | |
Preconfigured Bazel build configs. You can use any of the below by adding "--config=<>" to your build command. See tools/bazel.rc for more details. | |
--config=mkl # Build with MKL support. | |
--config=monolithic # Config for mostly static monolithic build. | |
Configuration finished | |
# build tensorflow with bazel | |
(tf110) [user@host tensorflow-1.10.1]$ bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package | |
# for building wheel files with successful built, | |
(tf110) [user@host tensorflow-1.10.1]$ bazel-bin/tensorflow/tools/pip_package/build_pip_package <destination folder> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment