message: Switch if_cuda back to if_cuda_is_configured as in PR
diff: @@ -49,6 +49,9 @@ def register_extension_info(**kwargs):
  # if_cuda_is_configured def placeholder
  +def if_cuda_is_configured_compat(x):
  + return if_cuda_is_configured(x)
  +
  # Given a source file, generate a test name.
  # i.e. "common_runtime/direct_session_test.cc" becomes
  # "common_runtime_direct_session_test"
  @@ -1042,7 +1045,7 @@ def _cuda_copts(opts = []):
  "@local_config_cuda//cuda:using_clang": ([
  "-fcuda-flush-denormals-to-zero",
  ]),
  - }) + if_cuda_is_configured(opts)
  + }) + if_cuda_is_configured_compat(opts)
  # Build defs for TensorFlow kernels
  @@ -1067,7 +1070,7 @@ def tf_gpu_kernel_library(
  srcs = srcs,
  hdrs = hdrs,
  copts = copts,
  - deps = deps + if_cuda_is_configured([
  + deps = deps + if_cuda_is_configured_compat([
  clean_dep("//tensorflow/core:cuda"),
  clean_dep("//tensorflow/core:gpu_lib"),
  ]) + if_rocm_is_configured([
  @@ -1107,7 +1110,7 @@ def tf_cuda_library(deps = None, cuda_deps = None, copts = tf_copts(), **kwargs)
  kwargs["features"] = kwargs.get("features", []) + ["-use_header_modules"]
  native.cc_library(
  - deps = deps + if_cuda(cuda_deps + [
  + deps = deps + if_cuda_is_configured_compat(cuda_deps + [
  clean_dep("//tensorflow/core:cuda"),
  "@local_config_cuda//cuda:cuda_headers",
  ]) + if_rocm_is_configured(cuda_deps + [
  @@ -1504,7 +1507,7 @@ def tf_custom_op_library(name, srcs = [], gpu_srcs = [], deps = [], linkopts = [
  srcs = gpu_srcs,
  copts = _cuda_copts() + if_tensorrt(["-DGOOGLE_TENSORRT=1"]),
  features = if_cuda(["-use_header_modules"]),
  - deps = deps + if_cuda_is_configured(cuda_deps) + if_rocm_is_configured(rocm_deps),
  + deps = deps + if_cuda_is_configured_compat(cuda_deps) + if_rocm_is_configured(rocm_deps),
  **kwargs
  )
  cuda_deps.extend([":" + basename + "_gpu"])
  @@ -1516,12 +1519,12 @@ def tf_custom_op_library(name, srcs = [], gpu_srcs = [], deps = [], linkopts = [
  clean_dep("//tensorflow/core:framework"),
  clean_dep("//tensorflow/core:lib"),
  ],
  - deps = deps + if_cuda_is_configured(cuda_deps) + if_rocm_is_configured(rocm_deps),
  + deps = deps + if_cuda_is_configured_compat(cuda_deps) + if_rocm_is_configured(rocm_deps),
  )
  tf_cc_shared_object(
  name = name,
  srcs = srcs,
  - deps = deps + if_cuda_is_configured(cuda_deps) + if_rocm_is_configured(rocm_deps),
  + deps = deps + if_cuda_is_configured_compat(cuda_deps) + if_rocm_is_configured(rocm_deps),
  data = if_static([name + "_check_deps"]),
  copts = tf_copts(is_external = True),
  features = ["windows_export_all_symbols"],
  