Skip to content

Commit 1748ee6

Browse files
authored
Merge pull request #248 from FloopCZ/tf-v2.4.0
TF v2.4.0
2 parents 5a21cd9 + df60573 commit 1748ee6

File tree

6 files changed

+13
-10
lines changed

6 files changed

+13
-10
lines changed

Dockerfiles/archlinux-cuda

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ RUN ./tensorflow_cc/Dockerfiles/install-archlinux.sh --cuda
1010

1111
ENV NVIDIA_VISIBLE_DEVICES all
1212
ENV NVIDIA_DRIVER_CAPABILITIES compute,utility
13-
ENV NVIDIA_REQUIRE_CUDA "cuda>=10.1"
13+
ENV NVIDIA_REQUIRE_CUDA "cuda>=11.1"

Dockerfiles/install-archlinux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,5 @@ fi
5959
# cleanup packages
6060
rm -rvf /usr/local/lib/bazel/
6161
rm -vf /usr/local/bin/bazel
62-
pacman --noconfirm -R jdk11-openjdk python python-numpy
62+
pacman --noconfirm -R jdk11-openjdk
6363
pacman --noconfirm -Rns $(pacman -Qtdq)

Dockerfiles/ubuntu-cuda

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM nvidia/cuda:10.1-cudnn7-devel-ubuntu18.04
1+
FROM nvidia/cuda:11.1-cudnn8-devel-ubuntu18.04
22

33
# copy the contents of this repository to the container
44
COPY . tensorflow_cc

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# tensorflow_cc
22
[![Build Status](http://elm.floop.cz:8080/buildStatus/icon?job=tensorflow_cc)](http://elm.floop.cz:8080/job/tensorflow_cc/)
3-
[![TF version](https://img.shields.io/badge/TF%20version-2.3.1-brightgreen.svg)]()
3+
[![TF version](https://img.shields.io/badge/TF%20version-2.4.0-brightgreen.svg)]()
44

55
This repository makes possible the usage of the [TensorFlow C++](https://www.tensorflow.org/api_docs/cc/) API from the outside of the TensorFlow source code folders and without the use of the [Bazel](https://bazel.build/) build system.
66

@@ -46,12 +46,13 @@ sudo apt-get install cmake curl g++-7 git python3-dev python3-numpy sudo wget
4646

4747
In order to build the TensorFlow itself, the build procedure also requires [Bazel](https://bazel.build/):
4848
```
49-
curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add -
49+
curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor > bazel.gpg
50+
sudo mv bazel.gpg /etc/apt/trusted.gpg.d/
5051
echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
5152
sudo apt-get update && sudo apt-get install bazel
5253
```
5354

54-
If you require GPU support on Ubuntu, please also install NVIDIA CUDA Toolkit (>=10.1), NVIDIA drivers, cuDNN, and `cuda-command-line-tools` package.
55+
If you require GPU support on Ubuntu, please also install NVIDIA CUDA Toolkit (>=11.1), NVIDIA drivers, cuDNN, and `cuda-command-line-tools` package.
5556
The build procedure will automatically detect CUDA if it is installed in `/opt/cuda` or `/usr/local/cuda` directories.
5657

5758
##### Arch Linux:

tensorflow_cc/PROJECT_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.3.1
1+
2.4.0

tensorflow_cc/cmake/build_tensorflow.sh.in

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,13 @@ export CC_OPT_FLAGS=${CC_OPT_FLAGS:-"-march=ivybridge"}
1111
export TF_NEED_GCP=${TF_NEED_GCP:-0}
1212
export TF_NEED_HDFS=${TF_NEED_HDFS:-0}
1313
export TF_NEED_OPENCL=${TF_NEED_OPENCL:-0}
14-
export TF_NEED_OPENCL_SYCL=${TF_NEED_OPENCL_SYCL:-0}
1514
export TF_NEED_TENSORRT=${TF_NEED_TENSORRT:-0}
1615
export TF_NEED_NGRAPH=${TF_NEED_NGRAPH:-0}
1716
export TF_NEED_JEMALLOC=${TF_NEED_JEMALLOC:-1}
1817
export TF_NEED_VERBS=${TF_NEED_VERBS:-0}
1918
export TF_NEED_MKL=${TF_NEED_MKL:-1}
2019
export TF_DOWNLOAD_MKL=${TF_DOWNLOAD_MKL:-1}
2120
export TF_NEED_MPI=${TF_NEED_MPI:-0}
22-
export TF_ENABLE_XLA=${TF_ENABLE_XLA:-1}
2321
export TF_NEED_AWS=${TF_NEED_AWS:-0}
2422
export TF_NEED_GDR=${TF_NEED_GDR:-0}
2523
export TF_CUDA_CLANG=${TF_CUDA_CLANG:-0}
@@ -63,7 +61,11 @@ if [ "$cuda_allowed" == true ] && [ "$cuda_available" == true ]; then
6361

6462
# choose the right version of CUDA compiler
6563
if [ -z "$GCC_HOST_COMPILER_PATH" ]; then
66-
if hash gcc-9 2>/dev/null && version_gt 9.4 `gcc-9 -dumpversion`; then
64+
if hash gcc 2>/dev/null && version_gt 10.3 `gcc -dumpversion`; then
65+
export GCC_HOST_COMPILER_PATH=${GCC_HOST_COMPILER_PATH:-"/usr/bin/gcc"}
66+
elif hash gcc-10 2>/dev/null && version_gt 10.3 `gcc-10 -dumpversion`; then
67+
export GCC_HOST_COMPILER_PATH=${GCC_HOST_COMPILER_PATH:-"/usr/bin/gcc-10"}
68+
elif hash gcc-9 2>/dev/null && version_gt 9.4 `gcc-9 -dumpversion`; then
6769
export GCC_HOST_COMPILER_PATH=${GCC_HOST_COMPILER_PATH:-"/usr/bin/gcc-9"}
6870
elif hash gcc-8 2>/dev/null && version_gt 8.5 `gcc-8 -dumpversion`; then
6971
export GCC_HOST_COMPILER_PATH=${GCC_HOST_COMPILER_PATH:-"/usr/bin/gcc-8"}

0 commit comments

Comments
 (0)