We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56d94c7 commit 1e695f1Copy full SHA for 1e695f1
1 file changed
tensorflow_cc/cmake/build_tensorflow.sh.in
@@ -63,7 +63,9 @@ if [ "$cuda_allowed" == true ] && [ "$cuda_available" == true ]; then
63
64
# choose the right version of CUDA compiler
65
if [ -z "$GCC_HOST_COMPILER_PATH" ]; then
66
- if hash gcc-8 2>/dev/null && version_gt 8.5 `gcc-8 -dumpversion`; then
+ if hash gcc-9 2>/dev/null && version_gt 9.4 `gcc-9 -dumpversion`; then
67
+ export GCC_HOST_COMPILER_PATH=${GCC_HOST_COMPILER_PATH:-"/usr/bin/gcc-9"}
68
+ elif hash gcc-8 2>/dev/null && version_gt 8.5 `gcc-8 -dumpversion`; then
69
export GCC_HOST_COMPILER_PATH=${GCC_HOST_COMPILER_PATH:-"/usr/bin/gcc-8"}
70
elif hash gcc-7 2>/dev/null && version_gt 7.5 `gcc-7 -dumpversion`; then
71
export GCC_HOST_COMPILER_PATH=${GCC_HOST_COMPILER_PATH:-"/usr/bin/gcc-7"}
0 commit comments