aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure.py
diff options
context:
space:
mode:
authorGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-10-01 12:25:39 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-10-01 12:25:39 -0700
commit61a872068ece1355945ef2d88659e99de2fe7591 (patch)
tree0aa42811dd0a8741f0a418b2ff97e512c40ebcb8 /configure.py
parentc4b3ce081b8abfae5560814ec445f0169cb4c368 (diff)
parent90c68770467701a23d23a85c5d769f6f4fa39f0f (diff)
Merge pull request #22210 from dmitrievanthony:apache-ignite-dataset
PiperOrigin-RevId: 215258743
Diffstat (limited to 'configure.py')
-rw-r--r--configure.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/configure.py b/configure.py
index 796c6231e8..2de2365ff3 100644
--- a/configure.py
+++ b/configure.py
@@ -223,7 +223,7 @@ def setup_python(environ_cp):
python_lib_path = default_python_lib_path
environ_cp['PYTHON_LIB_PATH'] = python_lib_path
- python_major_version = get_python_major_version(python_bin_path)
+ _ = get_python_major_version(python_bin_path)
# Convert python path to Windows style before writing into bazel.rc
if is_windows() or is_cygwin():
@@ -1041,7 +1041,7 @@ def set_tf_tensorrt_install_path(environ_cp):
for lib_file in possible_files:
if is_cuda_compatible(lib_file, cuda_ver, cudnn_ver):
matches = nvinfer_pattern.search(lib_file)
- if len(matches.groups()) == 0:
+ if not matches.groups():
continue
ver_str = matches.group(1)
ver = convert_version_to_int(ver_str) if len(ver_str) else 0
@@ -1409,7 +1409,7 @@ def set_other_mpi_vars(environ_cp):
def set_system_libs_flag(environ_cp):
syslibs = environ_cp.get('TF_SYSTEM_LIBS', '')
- if syslibs and syslibs != '':
+ if syslibs:
if ',' in syslibs:
syslibs = ','.join(sorted(syslibs.split(',')))
else:
@@ -1518,10 +1518,11 @@ def main():
if is_ppc64le():
write_action_env_to_bazelrc('OMP_NUM_THREADS', 1)
+ set_build_var(environ_cp, 'TF_NEED_IGNITE', 'Apache Ignite',
+ 'with_ignite_support', True, 'ignite')
set_build_var(environ_cp, 'TF_ENABLE_XLA', 'XLA JIT', 'with_xla_support',
True, 'xla')
-
set_action_env_var(environ_cp, 'TF_NEED_OPENCL_SYCL', 'OpenCL SYCL', False)
if environ_cp.get('TF_NEED_OPENCL_SYCL') == '1':
set_host_cxx_compiler(environ_cp)