Change compute capability < 3.5 check from error into warning. See issue #26394.
PiperOrigin-RevId: 237971151
diff --git a/configure.py b/configure.py
index 3dc0cb2..92b2a3d 100644
--- a/configure.py
+++ b/configure.py
@@ -1305,11 +1305,14 @@
all_valid = False
else:
ver = float(m.group(0))
- if ver < 3.5:
- print('ERROR: TensorFlow only supports CUDA compute capabilities 3.5 '
+ if ver < 3.0:
+ print('ERROR: TensorFlow only supports CUDA compute capabilities 3.0 '
'and higher. Please re-specify the list of compute '
'capabilities excluding version %s.' % ver)
all_valid = False
+ if ver < 3.5:
+ print('WARNING: XLA does not support CUDA compute capabilities '
+ 'lower than 3.5. Disable XLA when running on older GPUs.')
if all_valid:
break