<commit_before>### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###

iree_add_all_subdirs()

iree_microbenchmark_suite(
  NAME
   "microbenchmark_llvm-cpu"
  SRCS
    "dynamic_shape_vectorization.mlir"
    "linalg_mmt4d.mlir"
    "linalg_transpose.mlir"
    "mhlo_conv.mlir"
    "mhlo_dot.mlir"
    "mhlo_dot_general.mlir"
    "mhlo_fft_abs.mlir"
  FLAGS
    "--iree-hal-target-backends=llvm-cpu"
    "--iree-input-type=mhlo"
    "--iree-llvm-target-cpu-features=host"
)

iree_microbenchmark_suite(
  NAME
   "microbenchmark_cuda"
  SRCS
    "linalg_transpose.mlir"
  FLAGS
    "--iree-hal-target-backends=cuda"
    "--iree-input-type=mhlo"
)<commit_msg>Condition cuda microbenchmarks on cuda backend.  (#11097)<commit_after>### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###

iree_add_all_subdirs()

iree_microbenchmark_suite(
  NAME
   "microbenchmark_llvm-cpu"
  SRCS
    "dynamic_shape_vectorization.mlir"
    "linalg_mmt4d.mlir"
    "linalg_transpose.mlir"
    "mhlo_conv.mlir"
    "mhlo_dot.mlir"
    "mhlo_dot_general.mlir"
    "mhlo_fft_abs.mlir"
  FLAGS
    "--iree-hal-target-backends=llvm-cpu"
    "--iree-input-type=mhlo"
    "--iree-llvm-target-cpu-features=host"
)

# Only target cuda benchmarks if the backend is enabled.
if(IREE_TARGET_BACKEND_CUDA)
  iree_microbenchmark_suite(
    NAME
    "microbenchmark_cuda"
    SRCS
      "linalg_transpose.mlir"
    FLAGS
      "--iree-hal-target-backends=cuda"
      "--iree-input-type=mhlo"
  )
endif()
{'fraction_non_alphanumeric': 0.12035158891142664, 'fraction_numerical': 0.004732927653820149, 'mean_word_length': 3.7896440129449838, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4423881', 'n_tokens_mistral': 675, 'n_tokens_neox': 633, 'n_words': 69}