| # Copyright 2024 The IREE Authors |
| # |
| # Licensed under the Apache License v2.0 with LLVM Exceptions. |
| # See https://llvm.org/LICENSE.txt for license information. |
| # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| |
| load("//build_tools/bazel:build_defs.oss.bzl", "iree_runtime_cc_binary", "iree_runtime_cc_library") |
| |
| package( |
| default_visibility = ["//visibility:public"], |
| features = ["layering_check"], |
| licenses = ["notice"], # Apache 2.0 |
| ) |
| |
| iree_runtime_cc_library( |
| name = "e2e_test_util", |
| srcs = ["test_utils.c"], |
| hdrs = ["test_utils.h"], |
| deps = [ |
| "//runtime/src/iree/base", |
| "//runtime/src/iree/base/internal", |
| "//runtime/src/iree/base/internal:cpu", |
| "//runtime/src/iree/base/internal:flags", |
| "//runtime/src/iree/base/internal:path", |
| "//runtime/src/iree/hal", |
| "//runtime/src/iree/modules/hal", |
| "//runtime/src/iree/tooling:context_util", |
| "//runtime/src/iree/tooling:device_util", |
| "//runtime/src/iree/vm", |
| "//runtime/src/iree/vm:cc", |
| ], |
| ) |
| |
| iree_runtime_cc_binary( |
| name = "iree-e2e-matmul-test", |
| srcs = ["iree-e2e-matmul-test.cc"], |
| deps = [ |
| ":e2e_test_util", |
| "//runtime/src/iree/base", |
| "//runtime/src/iree/base/internal", |
| "//runtime/src/iree/base/internal:cpu", |
| "//runtime/src/iree/base/internal:flags", |
| "//runtime/src/iree/base/internal:path", |
| "//runtime/src/iree/hal", |
| "//runtime/src/iree/modules/hal", |
| "//runtime/src/iree/tooling:context_util", |
| "//runtime/src/iree/tooling:device_util", |
| "//runtime/src/iree/vm", |
| "//runtime/src/iree/vm:cc", |
| ], |
| ) |
| |
| iree_runtime_cc_binary( |
| name = "iree-e2e-conv2d-test", |
| srcs = ["iree-e2e-conv2d-test.cc"], |
| deps = [ |
| ":e2e_test_util", |
| "//runtime/src/iree/base", |
| "//runtime/src/iree/base/internal", |
| "//runtime/src/iree/base/internal:cpu", |
| "//runtime/src/iree/base/internal:flags", |
| "//runtime/src/iree/base/internal:path", |
| "//runtime/src/iree/hal", |
| "//runtime/src/iree/modules/hal", |
| "//runtime/src/iree/tooling:context_util", |
| "//runtime/src/iree/tooling:device_util", |
| "//runtime/src/iree/vm", |
| "//runtime/src/iree/vm:cc", |
| ], |
| ) |
| |
| iree_runtime_cc_binary( |
| name = "iree-e2e-attention-test", |
| srcs = ["iree-e2e-attention-test.cc"], |
| deps = [ |
| ":e2e_test_util", |
| "//runtime/src/iree/base", |
| "//runtime/src/iree/base/internal", |
| "//runtime/src/iree/base/internal:cpu", |
| "//runtime/src/iree/base/internal:flags", |
| "//runtime/src/iree/base/internal:path", |
| "//runtime/src/iree/hal", |
| "//runtime/src/iree/modules/hal", |
| "//runtime/src/iree/tooling:context_util", |
| "//runtime/src/iree/tooling:device_util", |
| "//runtime/src/iree/vm", |
| "//runtime/src/iree/vm:cc", |
| ], |
| ) |