Closed Novaal closed 3 years ago
Built on Ubuntu 18.04. Builds are not tested and provided as is.
Example configuration for Python 3.6 and westmere:
westmere
PYTHON_VERSION=python3.6 PYTHON_BIN_PATH=$(which $PYTHON_VERSION) \ PYTHON_LIB_PATH=$($PYTHON_VERSION -c "import pip; print(pip.__path__[0].rstrip('/pip'))") \ TF_NEED_CUDA=0 \ TF_NEED_ROCM=0 \ TF_DOWNLOAD_CLANG=0 \ CC_OPT_FLAGS="-march=westmere -Wno-sign-compare" \ TF_SET_ANDROID_WORKSPACE=0 \ TF_ENABLE_XLA=1 \ TF_NEED_OPENCL_SYCL=0 \ TF_NEED_MPI=0 \ ./configure
This produces the following .tf_configure.bazelrc for Python 3.6.
.tf_configure.bazelrc
build --action_env PYTHON_BIN_PATH="/usr/bin/python3.6" build --action_env PYTHON_LIB_PATH="/usr/local/lib/python3.6/dist-packages" build --python_path="/usr/bin/python3.6" build:xla --define with_xla_support=true build --config=xla build:opt --copt=-march=westmere build:opt --copt=-Wno-sign-compare build:opt --host_copt=-march=native build:opt --define with_default_optimizations=true test --flaky_test_attempts=3 test --test_size_filters=small,medium test --test_tag_filters=-benchmark-test,-no_oss,-oss_serial test --build_tag_filters=-benchmark-test,-no_oss test --test_tag_filters=-gpu test --build_tag_filters=-gpu build --action_env TF_CONFIGURE_IOS="0"
Install with:
pip install --ignore-installed --upgrade tensorflow-2.3.3-cp36-cp36m-linux_x86_64.whl
Please let me know here if it works for you.
See https://github.com/yaroslavvb/tensorflow-community-wheels/issues/202 for v2.3.4.
Built on Ubuntu 18.04. Builds are not tested and provided as is.
Example configuration for Python 3.6 and
westmere
:This produces the following
.tf_configure.bazelrc
for Python 3.6.(-march)
Install with:
Please let me know here if it works for you.