[XLA] Remove unused method RunBackendOnModuleGroup
PiperOrigin-RevId: 264177189
This commit is contained in:
parent
7fb4c6deee
commit
70dac8f169
@ -165,14 +165,6 @@ class Compiler {
|
||||
std::unique_ptr<HloModule> module, se::StreamExecutor* executor,
|
||||
se::DeviceMemoryAllocator* device_allocator) = 0;
|
||||
|
||||
// Compiles a set of HLO modules that can run in parallel, potentially
|
||||
// communicating data between the modules.
|
||||
virtual StatusOr<std::vector<std::unique_ptr<Executable>>>
|
||||
RunBackendOnModuleGroup(
|
||||
std::unique_ptr<HloModuleGroup> module_group,
|
||||
std::vector<std::vector<se::StreamExecutor*>> stream_exec,
|
||||
se::DeviceMemoryAllocator* device_allocator) = 0;
|
||||
|
||||
// Compiles a set of HLO modules that can run in parallel, potentially
|
||||
// communicating data between the modules, and returns a corresponding
|
||||
// sequence of executable objects.
|
||||
|
||||
@ -126,15 +126,6 @@ StatusOr<std::unique_ptr<Executable>> InterpreterCompiler::RunBackend(
|
||||
return std::move(executable);
|
||||
}
|
||||
|
||||
StatusOr<std::vector<std::unique_ptr<Executable>>>
|
||||
InterpreterCompiler::RunBackendOnModuleGroup(
|
||||
std::unique_ptr<HloModuleGroup> module_group,
|
||||
std::vector<std::vector<se::StreamExecutor*>> stream_exec,
|
||||
se::DeviceMemoryAllocator* device_allocator) {
|
||||
return Unimplemented(
|
||||
"Module group compilation is not supported on Interpreter.");
|
||||
}
|
||||
|
||||
StatusOr<std::vector<std::unique_ptr<Executable>>> InterpreterCompiler::Compile(
|
||||
std::unique_ptr<HloModuleGroup> module_group,
|
||||
std::vector<std::vector<se::StreamExecutor*>> stream_exec,
|
||||
|
||||
@ -49,11 +49,6 @@ class InterpreterCompiler : public Compiler {
|
||||
StatusOr<std::unique_ptr<Executable>> RunBackend(
|
||||
std::unique_ptr<HloModule> hlo_module, se::StreamExecutor* stream_exec,
|
||||
se::DeviceMemoryAllocator* device_allocator) override;
|
||||
StatusOr<std::vector<std::unique_ptr<Executable>>> RunBackendOnModuleGroup(
|
||||
std::unique_ptr<HloModuleGroup> module_group,
|
||||
std::vector<std::vector<se::StreamExecutor*>> stream_exec,
|
||||
se::DeviceMemoryAllocator* device_allocator) override;
|
||||
|
||||
StatusOr<std::vector<std::unique_ptr<Executable>>> Compile(
|
||||
std::unique_ptr<HloModuleGroup> module_group,
|
||||
std::vector<std::vector<se::StreamExecutor*>> stream_exec,
|
||||
|
||||
@ -21,15 +21,6 @@ limitations under the License.
|
||||
#endif
|
||||
|
||||
namespace xla {
|
||||
StatusOr<std::vector<std::unique_ptr<Executable>>>
|
||||
LLVMCompiler::RunBackendOnModuleGroup(
|
||||
std::unique_ptr<HloModuleGroup> module_group,
|
||||
std::vector<std::vector<se::StreamExecutor*>> stream_exec,
|
||||
se::DeviceMemoryAllocator* device_allocator) {
|
||||
return Unimplemented(
|
||||
"Model partitioning not implemented for the CPU/GPU compilers!");
|
||||
}
|
||||
|
||||
StatusOr<std::vector<std::unique_ptr<Executable>>> LLVMCompiler::Compile(
|
||||
std::unique_ptr<HloModuleGroup> module_group,
|
||||
std::vector<std::vector<se::StreamExecutor*>> stream_execs,
|
||||
|
||||
@ -69,11 +69,6 @@ class LLVMCompiler : public Compiler {
|
||||
using Compiler::RunBackend;
|
||||
using Compiler::RunHloPasses;
|
||||
|
||||
StatusOr<std::vector<std::unique_ptr<Executable>>> RunBackendOnModuleGroup(
|
||||
std::unique_ptr<HloModuleGroup> module_group,
|
||||
std::vector<std::vector<se::StreamExecutor*>> stream_exec,
|
||||
se::DeviceMemoryAllocator* device_allocator) override;
|
||||
|
||||
StatusOr<std::vector<std::unique_ptr<Executable>>> Compile(
|
||||
std::unique_ptr<HloModuleGroup> module_group,
|
||||
std::vector<std::vector<se::StreamExecutor*>> stream_execs,
|
||||
|
||||
@ -50,16 +50,6 @@ StatusOr<std::unique_ptr<Executable>> FailoverCompiler::RunBackend(
|
||||
return result;
|
||||
}
|
||||
|
||||
StatusOr<std::vector<std::unique_ptr<Executable>>>
|
||||
FailoverCompiler::RunBackendOnModuleGroup(
|
||||
std::unique_ptr<HloModuleGroup> module_group,
|
||||
std::vector<std::vector<se::StreamExecutor*>> stream_exec,
|
||||
se::DeviceMemoryAllocator* device_allocator) {
|
||||
// This is not supported by GPU compiler anyway.
|
||||
return Unimplemented(
|
||||
"Model partitioning not implemented for the failover compiler!");
|
||||
}
|
||||
|
||||
StatusOr<std::vector<std::unique_ptr<Executable>>> FailoverCompiler::Compile(
|
||||
std::unique_ptr<HloModuleGroup> module_group,
|
||||
std::vector<std::vector<se::StreamExecutor*>> stream_execs,
|
||||
|
||||
@ -57,11 +57,6 @@ class FailoverCompiler final : public Compiler {
|
||||
std::unique_ptr<HloModule> module, se::StreamExecutor* stream_exec,
|
||||
se::DeviceMemoryAllocator* device_allocator) override;
|
||||
|
||||
StatusOr<std::vector<std::unique_ptr<Executable>>> RunBackendOnModuleGroup(
|
||||
std::unique_ptr<HloModuleGroup> module_group,
|
||||
std::vector<std::vector<se::StreamExecutor*>> stream_exec,
|
||||
se::DeviceMemoryAllocator* device_allocator) override;
|
||||
|
||||
StatusOr<std::vector<std::unique_ptr<Executable>>> Compile(
|
||||
std::unique_ptr<HloModuleGroup> module_group,
|
||||
std::vector<std::vector<se::StreamExecutor*>> stream_execs,
|
||||
|
||||
@ -65,14 +65,6 @@ StatusOr<std::unique_ptr<Executable>> MlirCompiler::RunBackend(
|
||||
return Unimplemented("Not yet implemented in MLIR compiler");
|
||||
}
|
||||
|
||||
StatusOr<std::vector<std::unique_ptr<Executable>>>
|
||||
MlirCompiler::RunBackendOnModuleGroup(
|
||||
std::unique_ptr<HloModuleGroup> module_group,
|
||||
std::vector<std::vector<se::StreamExecutor*>> stream_exec,
|
||||
se::DeviceMemoryAllocator* device_allocator) {
|
||||
return Unimplemented("Not yet implemented in MLIR compiler");
|
||||
}
|
||||
|
||||
StatusOr<std::vector<std::unique_ptr<Executable>>> MlirCompiler::Compile(
|
||||
std::unique_ptr<HloModuleGroup> module_group,
|
||||
std::vector<std::vector<se::StreamExecutor*>> stream_execs,
|
||||
|
||||
@ -39,11 +39,6 @@ class MlirCompiler : public Compiler {
|
||||
std::unique_ptr<HloModule> module, se::StreamExecutor* stream_exec,
|
||||
se::DeviceMemoryAllocator* device_allocator) override;
|
||||
|
||||
StatusOr<std::vector<std::unique_ptr<Executable>>> RunBackendOnModuleGroup(
|
||||
std::unique_ptr<HloModuleGroup> module_group,
|
||||
std::vector<std::vector<se::StreamExecutor*>> stream_exec,
|
||||
se::DeviceMemoryAllocator* device_allocator) override;
|
||||
|
||||
StatusOr<std::vector<std::unique_ptr<Executable>>> Compile(
|
||||
std::unique_ptr<HloModuleGroup> module_group,
|
||||
std::vector<std::vector<se::StreamExecutor*>> stream_execs,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user