################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from           #
# runtime/src/iree/hal/drivers/cuda/cts/BUILD.bazel                            #
#                                                                              #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary   #
# CMake-only content.                                                          #
#                                                                              #
# To disable autogeneration for this file entirely, delete this header.        #
################################################################################

iree_add_all_subdirs()

iree_cc_library(
  NAME
    backends
  SRCS
    "backends.cc"
  DEPS
    iree::hal
    iree::hal::cts::util::registry
    iree::hal::drivers::cuda::registration
  TESTONLY
  ALWAYSLINK
  PUBLIC
)

iree_hal_cts_testdata(
  FORMAT_NAME
    cuda
  TARGET_DEVICE
    "cuda"
  IDENTIFIER
    "iree_cts_testdata_cuda"
  BACKEND_NAME
    "cuda"
  FORMAT_STRING
    [=["PTXE"]=]
  TESTDATA_DIR
    "${PROJECT_SOURCE_DIR}/runtime/src/iree/hal/cts/testdata"
)

iree_hal_cts_test_suite(
  BACKENDS_LIB
    ::backends
  TESTDATA_LIBS
    ::testdata_cuda_lib
  NAME
    graph
  ARGS
    "--cuda_use_streams=false"
  LABELS
    "driver=cuda"
    "requires-gpu-nvidia"
)

iree_hal_cts_test_suite(
  BACKENDS_LIB
    ::backends
  TESTDATA_LIBS
    ::testdata_cuda_lib
  NAME
    stream
  ARGS
    "--cuda_use_streams=true"
  LABELS
    "driver=cuda"
    "requires-gpu-nvidia"
)

### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###
