message: Fixed an issue with rocm builds pulling in false CUDA dependencies.
diff: @@ -21,6 +21,10 @@ load(
  "tf_additional_cupti_deps",
  )
  load("//tensorflow/core/profiler/builds:build_config.bzl", "tf_profiler_copts")
  +load(
  + "//tensorflow/core/platform/default:cuda_build_defs.bzl",
  + "if_cuda_is_configured",
  +)
  package(
  default_visibility = ["//tensorflow:internal"],
  @@ -89,9 +93,10 @@ tf_cuda_cc_test(
  "//tensorflow/core/profiler/utils:tf_xplane_visitor",
  "//tensorflow/core/profiler/utils:xplane_schema",
  "//tensorflow/core/profiler/utils:xplane_utils",
  + ] + if_cuda_is_configured([
  "@local_config_cuda//cuda:cuda_headers",
  "@local_config_cuda//cuda:cupti_headers",
  - ],
  + ]),
  )
  tf_cuda_library(
  