diff options
author | Mark Heffernan <meheff@google.com> | 2018-09-13 09:01:27 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-09-13 09:04:51 -0700 |
commit | a4bf3d0935570762e9d60eb917d8f42be7e398b4 (patch) | |
tree | cc187826a29b7540017fc816f452806aaf459aca /tensorflow/compiler/xla/service/BUILD | |
parent | 7453b0b1cee3d251106684876bc9d639235f5c4a (diff) |
Add HloModuleGroup abstraction.
This CL adds HloModuleGroup which is a simple container of HLO modules. The module group gathers together HLO modules which are built to run concurrently across multiple devices. This cl just adds the container class. Later CLs will tie this into other parts of XLA including adding HloModuleGroup HLO passes which operate on an entire module group.
PiperOrigin-RevId: 212821390
Diffstat (limited to 'tensorflow/compiler/xla/service/BUILD')
-rw-r--r-- | tensorflow/compiler/xla/service/BUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tensorflow/compiler/xla/service/BUILD b/tensorflow/compiler/xla/service/BUILD index 17a557ccc3..fb80c78f68 100644 --- a/tensorflow/compiler/xla/service/BUILD +++ b/tensorflow/compiler/xla/service/BUILD @@ -1147,6 +1147,37 @@ tf_cc_test( ) cc_library( + name = "hlo_module_group", + srcs = ["hlo_module_group.cc"], + hdrs = ["hlo_module_group.h"], + deps = [ + ":hlo", + ":hlo_proto", + "//tensorflow/compiler/xla:statusor", + "@com_google_absl//absl/strings", + "@com_google_absl//absl/types:span", + ], +) + +tf_cc_test( + name = "hlo_module_group_test", + srcs = ["hlo_module_group_test.cc"], + deps = [ + ":hlo", + ":hlo_matchers", + ":hlo_module_group", + ":hlo_parser", + ":hlo_proto", + "//tensorflow/compiler/xla:test", + "//tensorflow/compiler/xla:util", + "//tensorflow/compiler/xla/tests:hlo_test_base", + "//tensorflow/compiler/xla/tests:xla_internal_test_main", + "//tensorflow/core:lib", + "//tensorflow/core:test", + ], +) + +cc_library( name = "hlo_module_group_metadata", srcs = ["hlo_module_group_metadata.cc"], hdrs = ["hlo_module_group_metadata.h"], |