|
| 1 | +load( |
| 2 | + "//tensorflow:tensorflow.bzl", |
| 3 | + "tf_copts", |
| 4 | + "tf_cuda_library", |
| 5 | + "tfe_xla_copts", |
| 6 | +) |
| 7 | + |
| 8 | +package( |
| 9 | + default_visibility = [":friends"], |
| 10 | + licenses = ["notice"], # Apache 2.0 |
| 11 | +) |
| 12 | + |
| 13 | +package_group( |
| 14 | + name = "friends", |
| 15 | + packages = ["//tensorflow/..."], |
| 16 | +) |
| 17 | + |
| 18 | +tf_cuda_library( |
| 19 | + name = "mlir_c_api", |
| 20 | + srcs = [ |
| 21 | + "c_api_unified_experimental_mlir.cc", |
| 22 | + ], |
| 23 | + copts = tf_copts() + tfe_xla_copts(), |
| 24 | + deps = [ |
| 25 | + "//tensorflow/c:c_api", |
| 26 | + "//tensorflow/c:tf_status_helper", |
| 27 | + "//tensorflow/c:tf_status_internal", |
| 28 | + "//tensorflow/c/eager:c_api", |
| 29 | + "//tensorflow/c/eager:c_api_internal", |
| 30 | + "//tensorflow/c/eager:c_api_unified_internal", |
| 31 | + "//tensorflow/compiler/mlir/tensorflow", |
| 32 | + "//tensorflow/compiler/mlir/tensorflow:convert_graphdef", |
| 33 | + "//tensorflow/compiler/mlir/tensorflow:convert_type", |
| 34 | + "//tensorflow/compiler/mlir/tensorflow:error_util", |
| 35 | + "//tensorflow/compiler/mlir/tensorflow:tensorflow_types", |
| 36 | + "//tensorflow/core:framework", |
| 37 | + "//tensorflow/core:protos_all_cc", |
| 38 | + "//tensorflow/core/platform:casts", |
| 39 | + "@llvm-project//llvm:support", |
| 40 | + "@llvm-project//mlir:IR", |
| 41 | + "@llvm-project//mlir:Pass", |
| 42 | + "@llvm-project//mlir:StandardOps", |
| 43 | + "@llvm-project//mlir:Support", |
| 44 | + ], |
| 45 | +) |
| 46 | + |
| 47 | +cc_library( |
| 48 | + name = "mlir_c_api_registration", |
| 49 | + srcs = ["c_api_unified_experimental_mlir_registration.cc"], |
| 50 | + deps = [ |
| 51 | + ":mlir_c_api", |
| 52 | + "//tensorflow/c/eager:c_api_unified_internal", |
| 53 | + ], |
| 54 | + alwayslink = 1, |
| 55 | +) |
0 commit comments