Remove verbs, gdr and ngraph questions in configure script.
PiperOrigin-RevId: 214643700
This commit is contained in:
parent
e0b735092e
commit
3da0dff642
18
configure.py
18
configure.py
@ -1408,10 +1408,6 @@ def set_other_mpi_vars(environ_cp):
|
||||
raise ValueError('Cannot find the MPI library file in %s/lib' % mpi_home)
|
||||
|
||||
|
||||
def set_grpc_build_flags():
|
||||
write_to_bazelrc('build --define grpc_no_ares=true')
|
||||
|
||||
|
||||
def set_system_libs_flag(environ_cp):
|
||||
syslibs = environ_cp.get('TF_SYSTEM_LIBS', '')
|
||||
if syslibs and syslibs != '':
|
||||
@ -1498,8 +1494,6 @@ def main():
|
||||
# Windows.
|
||||
environ_cp['TF_DOWNLOAD_CLANG'] = '0'
|
||||
environ_cp['TF_ENABLE_XLA'] = '0'
|
||||
environ_cp['TF_NEED_GDR'] = '0'
|
||||
environ_cp['TF_NEED_VERBS'] = '0'
|
||||
environ_cp['TF_NEED_MPI'] = '0'
|
||||
environ_cp['TF_SET_ANDROID_WORKSPACE'] = '0'
|
||||
|
||||
@ -1526,12 +1520,7 @@ def main():
|
||||
'with_kafka_support', True, 'kafka')
|
||||
set_build_var(environ_cp, 'TF_ENABLE_XLA', 'XLA JIT', 'with_xla_support',
|
||||
False, 'xla')
|
||||
set_build_var(environ_cp, 'TF_NEED_GDR', 'GDR', 'with_gdr_support', False,
|
||||
'gdr')
|
||||
set_build_var(environ_cp, 'TF_NEED_VERBS', 'VERBS', 'with_verbs_support',
|
||||
False, 'verbs')
|
||||
set_build_var(environ_cp, 'TF_NEED_NGRAPH', 'nGraph', 'with_ngraph_support',
|
||||
False, 'ngraph')
|
||||
|
||||
|
||||
set_action_env_var(environ_cp, 'TF_NEED_OPENCL_SYCL', 'OpenCL SYCL', False)
|
||||
if environ_cp.get('TF_NEED_OPENCL_SYCL') == '1':
|
||||
@ -1588,7 +1577,6 @@ def main():
|
||||
set_mpi_home(environ_cp)
|
||||
set_other_mpi_vars(environ_cp)
|
||||
|
||||
set_grpc_build_flags()
|
||||
set_cc_opt_flags(environ_cp)
|
||||
set_system_libs_flag(environ_cp)
|
||||
if is_windows():
|
||||
@ -1613,7 +1601,11 @@ def main():
|
||||
'more details.')
|
||||
config_info_line('mkl', 'Build with MKL support.')
|
||||
config_info_line('monolithic', 'Config for mostly static monolithic build.')
|
||||
config_info_line('gdr', 'Build with GDR support.')
|
||||
config_info_line('verbs', 'Build with libverbs support.')
|
||||
config_info_line('ngraph', 'Build with Intel ngraph support.')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
|
@ -58,6 +58,11 @@ build:sycl_asan --define=using_sycl=true --define=using_trisycl=false --copt -fn
|
||||
build:sycl_trisycl --crosstool_top=@local_config_sycl//crosstool:toolchain
|
||||
build:sycl_trisycl --define=using_sycl=true --define=using_trisycl=true
|
||||
|
||||
# Options extracted from configure script
|
||||
build:gdr --define=with_gdr_support=true
|
||||
build:ngraph --define=with_ngraph_support=true
|
||||
build:verbs --define=with_verbs_support=true
|
||||
|
||||
build --define=use_fast_cpp_protos=true
|
||||
build --define=allow_oversize_protos=true
|
||||
build --define=grpc_no_ares=true
|
||||
@ -66,6 +71,9 @@ build --spawn_strategy=standalone
|
||||
build --genrule_strategy=standalone
|
||||
build -c opt
|
||||
|
||||
# Other build flags.
|
||||
build --define=grpc_no_ares=true
|
||||
|
||||
# Modular TF build options
|
||||
build:dynamic_kernels --define=dynamic_loaded_kernels=true
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user