Skip to content

Commit 640d765

Browse files
authored
Merge pull request #1503 from xaviliz/feat/upgrade-tensorflow-to-v2.17.0
New feature: Support TensorFlow 2.17.0
2 parents 93c4f33 + 2d49481 commit 640d765

1 file changed

Lines changed: 14 additions & 8 deletions

File tree

packaging/build_config.sh

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ LIBYAML_VERSION=yaml-0.1.5
2222
CHROMAPRINT_VERSION=1.5.1
2323
QT_SOURCE_URL=https://download.qt.io/archive/qt/4.8/4.8.4/qt-everywhere-opensource-src-4.8.4.tar.gz
2424
GAIA_VERSION=2.4.6-86-ged433ed
25-
TENSORFLOW_VERSION=2.5.0
25+
TENSORFLOW_VERSION=2.17.0
2626

2727
FFMPEG_AUDIO_FLAGS="
2828
--disable-programs
@@ -272,6 +272,8 @@ TENSORFLOW_FLAGS="
272272
--config=noaws
273273
--config=nohdfs
274274
--config=nonccl
275+
--local_ram_resources=HOST_RAM*.6
276+
--jobs=$(nproc)
275277
"
276278

277279
# The only known alternative to the interactive TensorFlow configuration is
@@ -280,7 +282,7 @@ TENSORFLOW_FLAGS="
280282
#
281283
# Set the required TensorFlow build env variables with CUDA support if they
282284
# were not cofigured yet:
283-
export PYTHON_BIN_PATH="${PYTHON_BIN_PATH:-python3}"
285+
export PYTHON_BIN_PATH="${PYTHON_BIN_PATH:-$(which python3)}"
284286
export USE_DEFAULT_PYTHON_LIB_PATH="${USE_DEFAULT_PYTHON_LIB_PATH:-1}"
285287
export BAZEL_LINKLIBS="${BAZEL_LINKLIBS:--l%:libstdc++.a}"
286288

@@ -289,13 +291,14 @@ export TF_NEED_GCP="${TF_NEED_GCP:-0}"
289291
export TF_NEED_HDFS="${TF_NEED_HDFS:-0}"
290292
export TF_ENABLE_XLA="${TF_ENABLE_XLA:-0}"
291293
export TF_NEED_OPENCL="${TF_NEED_OPENCL:-0}"
294+
export TF_NEED_ROCM=0
292295

293-
# TensorFlow CUDA versions intended for TensorFlow 2.5
296+
# TensorFlow CUDA versions intended for TensorFlow 2.17.0
294297
# For future updates check the GPU compatibility chart:
295298
# https://www.tensorflow.org/install/source#gpu
296299
export TF_NEED_CUDA="${TF_NEED_CUDA:-1}"
297-
export TF_CUDA_VERSION="${TF_CUDA_VERSION:-11.2}"
298-
export TF_CUDNN_VERSION="${TF_CUDNN_VERSION:-8.1}"
300+
export TF_CUDA_VERSION="${TF_CUDA_VERSION:-12}"
301+
export TF_CUDNN_VERSION="${TF_CUDNN_VERSION:-9}"
299302
export CUDA_TOOLKIT_PATH="${CUDA_TOOLKIT_PATH:-/usr/local/cuda}"
300303
export CUDNN_INSTALL_PATH="${CUDNN_INSTALL_PATH:-/usr/local/cuda}"
301304

@@ -304,8 +307,11 @@ export CUDNN_INSTALL_PATH="${CUDNN_INSTALL_PATH:-/usr/local/cuda}"
304307
# Supporting more versions increases the library size, so
305308
# for the moment it is set to a conservative number that
306309
# covers some of the most popular dee'p learning GPUs:
307-
# 3.5: Geforce GT XXX
308-
# 5.2: Geforce GTX TITAN X
309310
# 7.5: Geforce RTX 2080 (Ti)
311+
# 8.0: Geforce RTX 3090 - 3080 (Ti)
310312
# 8.6: Geforce RTX 30XX
311-
export TF_CUDA_COMPUTE_CAPABILITIES="${TF_CUDA_COMPUTE_CAPABILITIES:-3.5,5.2,7.5,8.6}"
313+
# 8.9: Geforce RTX 4080
314+
export TF_CUDA_COMPUTE_CAPABILITIES="${TF_CUDA_COMPUTE_CAPABILITIES:-7.5,8.0,8.6,8.9}"
315+
316+
# Silence interactive configure questions
317+
export TF_SET_ANDROID_WORKSPACE=0

0 commit comments

Comments
 (0)